aboutsummaryrefslogtreecommitdiff
path: root/phpBB/bin
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2013-11-05 19:42:34 +0100
committerAndreas Fischer <bantu@phpbb.com>2013-11-05 19:42:34 +0100
commit73ea5daf97bf5447b9bb2ff912cce4a9ea21c58e (patch)
treea357da0a0ab96a8533266b83e0d9253e8d02b060 /phpBB/bin
parent[ticket/11998] Move application file to bin/phpbbcli.php (diff)
downloadphpbb-73ea5daf97bf5447b9bb2ff912cce4a9ea21c58e.tar.gz
phpbb-73ea5daf97bf5447b9bb2ff912cce4a9ea21c58e.tar.bz2
phpbb-73ea5daf97bf5447b9bb2ff912cce4a9ea21c58e.zip
[ticket/11998] Add phpBB abstraction for application and command.
PHPBB3-11998
Diffstat (limited to 'phpBB/bin')
-rw-r--r--phpBB/bin/phpbbcli.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/phpBB/bin/phpbbcli.php b/phpBB/bin/phpbbcli.php
index e367748fd9..05e2597960 100644
--- a/phpBB/bin/phpbbcli.php
+++ b/phpBB/bin/phpbbcli.php
@@ -7,8 +7,6 @@
*
*/
-use Symfony\Component\Console\Application;
-
if (php_sapi_name() != 'cli')
{
echo 'This program must be run from the command line.' . PHP_EOL;
@@ -32,9 +30,6 @@ $phpbb_class_loader_ext->register();
$phpbb_container = phpbb_create_update_container($phpbb_root_path, $phpEx, "$phpbb_root_path/config");
-$application = new Application('phpBB Console', PHPBB_VERSION);
-foreach($phpbb_container->findTaggedServiceIds('console.command') as $id => $void)
-{
- $application->add($phpbb_container->get($id));
-}
+$application = new \phpbb\console\application('phpBB Console', PHPBB_VERSION);
+$application->register_container_commands($phpbb_container);
$application->run();