diff options
author | Nils Adermann <naderman@naderman.de> | 2013-11-11 15:02:03 -0800 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2013-11-11 15:02:03 -0800 |
commit | 592c8b75669329588c897bd3eda679e4731e4aab (patch) | |
tree | 15f4ae931e07e5b98c820c07506520523a317ade /phpBB/phpbb/console/application.php | |
parent | d69f35d4507be98c384a0bb6232ebe08c36864c0 (diff) | |
parent | 00294e3dae2840fa01acaf47db4e14ae08c0720a (diff) | |
download | forums-592c8b75669329588c897bd3eda679e4731e4aab.tar forums-592c8b75669329588c897bd3eda679e4731e4aab.tar.gz forums-592c8b75669329588c897bd3eda679e4731e4aab.tar.bz2 forums-592c8b75669329588c897bd3eda679e4731e4aab.tar.xz forums-592c8b75669329588c897bd3eda679e4731e4aab.zip |
Merge pull request #1849 from bantu/ticket/11998
[ticket/11998] Introduction of the phpBB Console
Diffstat (limited to 'phpBB/phpbb/console/application.php')
-rw-r--r-- | phpBB/phpbb/console/application.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/phpBB/phpbb/console/application.php b/phpBB/phpbb/console/application.php new file mode 100644 index 0000000000..fdcd9d42f6 --- /dev/null +++ b/phpBB/phpbb/console/application.php @@ -0,0 +1,23 @@ +<?php +/** +* +* @package phpBB3 +* @copyright (c) 2013 phpBB Group +* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 +* +*/ + +namespace phpbb\console; + +use Symfony\Component\DependencyInjection\TaggedContainerInterface; + +class application extends \Symfony\Component\Console\Application +{ + function register_container_commands(TaggedContainerInterface $container, $tag = 'console.command') + { + foreach($container->findTaggedServiceIds($tag) as $id => $void) + { + $this->add($container->get($id)); + } + } +} |