From fbceadede5b1f32e00f00435bda427e4dc63f009 Mon Sep 17 00:00:00 2001 From: Tristan Darricau Date: Tue, 22 Jul 2014 16:33:49 +0200 Subject: [PATCH] Updated to the latest 3.1.0-RC2-dev --- console/command/cache/get.php | 10 ++++------ console/command/container/debug.php | 8 +------- console/command/router/debug.php | 8 +------- 3 files changed, 6 insertions(+), 20 deletions(-) diff --git a/console/command/cache/get.php b/console/command/cache/get.php index 0acce88..6f01910 100644 --- a/console/command/cache/get.php +++ b/console/command/cache/get.php @@ -18,11 +18,10 @@ class get extends \phpbb\console\command\command { - /** @var \phpbb\cache\driver\driver_interface */ + /** + * @var \phpbb\cache\driver\driver_interface + */ protected $cache; - - /** @var \phpbb\user */ - protected $user; /** * Constructor * @@ -32,11 +31,10 @@ class get extends \phpbb\console\command\command public function __construct(\phpbb\user $user, \phpbb\cache\driver\driver_interface $cache) { $this->cache = $cache; - $this->user = $user; $user->add_lang_ext('nicofuma/debugtools', 'cli'); - parent::__construct(); + parent::__construct($user); } /** diff --git a/console/command/container/debug.php b/console/command/container/debug.php index a49f5fb..29c36ea 100644 --- a/console/command/container/debug.php +++ b/console/command/container/debug.php @@ -50,11 +50,6 @@ class debug extends \phpbb\console\command\command */ protected $php_ext; - /** - * @var \phpbb\user - */ - protected $user; - /** * Constructor * @@ -68,11 +63,10 @@ function __construct(\phpbb\user $user, \phpbb\config_php_file $config_php_file, $this->config_php_file = $config_php_file; $this->phpbb_root_path = $phpbb_root_path; $this->php_ext = $php_ext; - $this->user = $user; $user->add_lang_ext('nicofuma/debugtools', 'cli'); - parent::__construct(); + parent::__construct($user); } /** diff --git a/console/command/router/debug.php b/console/command/router/debug.php index 187a397..951294d 100644 --- a/console/command/router/debug.php +++ b/console/command/router/debug.php @@ -31,11 +31,6 @@ class debug extends \phpbb\console\command\command */ protected $controller_provider; - /** - * @var \phpbb\user - */ - protected $user; - /** * Constructor * @@ -44,12 +39,11 @@ class debug extends \phpbb\console\command\command */ function __construct(\phpbb\user $user, \phpbb\controller\provider $controller_provider) { - $this->user = $user; $this->controller_provider = $controller_provider; $user->add_lang_ext('nicofuma/debugtools', 'cli'); - parent::__construct(); + parent::__construct($user); } /**