aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorMate Bartus <mate.bartus@gmail.com>2015-07-24 18:05:10 +0200
committerMate Bartus <mate.bartus@gmail.com>2015-07-24 18:05:10 +0200
commitbe7e1ba7a0d35a86c4b41ab037e82a3a114108cb (patch)
tree3787a42ee99e76060c00ff7030d9258ae09a6a46 /phpBB/phpbb
parentfc46dec81397ef0183a91aeba795f65a4d755178 (diff)
downloadforums-be7e1ba7a0d35a86c4b41ab037e82a3a114108cb.tar
forums-be7e1ba7a0d35a86c4b41ab037e82a3a114108cb.tar.gz
forums-be7e1ba7a0d35a86c4b41ab037e82a3a114108cb.tar.bz2
forums-be7e1ba7a0d35a86c4b41ab037e82a3a114108cb.tar.xz
forums-be7e1ba7a0d35a86c4b41ab037e82a3a114108cb.zip
[ticket/13740] Use language service in console application
PHPBB3-13740
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/console/application.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/phpBB/phpbb/console/application.php b/phpBB/phpbb/console/application.php
index 0943e8a4b8..2c69a3cc73 100644
--- a/phpBB/phpbb/console/application.php
+++ b/phpBB/phpbb/console/application.php
@@ -26,18 +26,18 @@ class application extends \Symfony\Component\Console\Application
protected $in_shell = false;
/**
- * @var \phpbb\user User object
+ * @var \phpbb\language\language User object
*/
- protected $user;
+ protected $language;
/**
- * @param string $name The name of the application
- * @param string $version The version of the application
- * @param \phpbb\user $user The user which runs the application (used for translation)
+ * @param string $name The name of the application
+ * @param string $version The version of the application
+ * @param \phpbb\language\language $language The user which runs the application (used for translation)
*/
- public function __construct($name, $version, $user)
+ public function __construct($name, $version, \phpbb\language\language $language)
{
- $this->user = $user;
+ $this->language = $language;
parent::__construct($name, $version);
}
@@ -53,7 +53,7 @@ class application extends \Symfony\Component\Console\Application
'safe-mode',
null,
InputOption::VALUE_NONE,
- $this->user->lang('CLI_DESCRIPTION_OPTION_SAFE_MODE')
+ $this->language->lang('CLI_DESCRIPTION_OPTION_SAFE_MODE')
));
return $input_definition;
@@ -80,7 +80,7 @@ class application extends \Symfony\Component\Console\Application
'--shell',
'-s',
InputOption::VALUE_NONE,
- $this->user->lang('CLI_DESCRIPTION_OPTION_SHELL')
+ $this->language->lang('CLI_DESCRIPTION_OPTION_SHELL')
));
return parent::getHelp();