1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/13740] Use language service in console application

PHPBB3-13740
This commit is contained in:
Mate Bartus
2015-07-24 18:05:10 +02:00
parent fc46dec813
commit be7e1ba7a0
2 changed files with 11 additions and 10 deletions

View File

@@ -68,7 +68,8 @@ require($phpbb_root_path . 'includes/compatibility_globals.' . $phpEx);
$user = $phpbb_container->get('user');
$user->add_lang('acp/common');
$user->add_lang('cli');
$lang = $phpbb_container->get('language');
$application = new \phpbb\console\application('phpBB Console', PHPBB_VERSION, $user);
$application = new \phpbb\console\application('phpBB Console', PHPBB_VERSION, $lang);
$application->register_container_commands($phpbb_container->get('console.command_collection'));
$application->run($input);