Skip to content
Newer
Older
100644 53 lines (44 sloc) 1.98 KB
5751da1 @dbu imported DoctrinePHPCRBundle
dbu authored
1 <?php
23f0679 @dbu cs fixes
dbu authored
2
39d39c2 @lsmith77 use LGPL, since we are using LGPL code from other Doctrine bundles
lsmith77 authored
3 /*
4 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
5 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
6 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
7 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
8 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
9 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
10 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
11 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
12 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
13 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
14 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
15 *
16 * This software consists of voluntary contributions made by many individuals
17 * and is licensed under the LGPL. For more information, see
18 * <http://www.doctrine-project.org>.
19 */
20
e3069e4 @lsmith77 updated namespace
lsmith77 authored
21 namespace Doctrine\Bundle\PHPCRBundle\Command;
5751da1 @dbu imported DoctrinePHPCRBundle
dbu authored
22
07f915e @dbu updating to the refactored phpcr-odm. commands mostly just wrap the p…
dbu authored
23 use PHPCR\Util\Console\Command\RegisterNodeTypesCommand as BaseRegisterNodeTypesCommand;
24
5751da1 @dbu imported DoctrinePHPCRBundle
dbu authored
25 use Symfony\Component\Console\Input\InputInterface;
26 use Symfony\Component\Console\Input\InputOption;
27 use Symfony\Component\Console\Output\OutputInterface;
28
29 /**
30 * Wrapper to use RegisterNodeTypeCommand with Symfony's app/console
31 *
32 * @see Doctrine/ODM/PHPCR/Tools/Console/Command/RegisterNodeTypesCommand
33 */
34 class RegisterNodeTypesCommand extends BaseRegisterNodeTypesCommand
35 {
36 protected function configure()
37 {
38 parent::configure();
39
23f0679 @dbu cs fixes
dbu authored
40 $this
41 ->setName('doctrine:phpcr:register-node-types')
42 ->addOption('session', null, InputOption::VALUE_OPTIONAL, 'The session to use for this command')
07f915e @dbu updating to the refactored phpcr-odm. commands mostly just wrap the p…
dbu authored
43 ;
5751da1 @dbu imported DoctrinePHPCRBundle
dbu authored
44 }
07f915e @dbu updating to the refactored phpcr-odm. commands mostly just wrap the p…
dbu authored
45
5751da1 @dbu imported DoctrinePHPCRBundle
dbu authored
46 protected function execute(InputInterface $input, OutputInterface $output)
47 {
48 DoctrineCommandHelper::setApplicationPHPCRSession($this->getApplication(), $input->getOption('session'));
49
07f915e @dbu updating to the refactored phpcr-odm. commands mostly just wrap the p…
dbu authored
50 return parent::execute($input, $output);
51 }
5751da1 @dbu imported DoctrinePHPCRBundle
dbu authored
52 }
Something went wrong with that request. Please try again.