aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/console
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/console')
-rw-r--r--phpBB/phpbb/console/command/thumbnail/delete.php16
-rw-r--r--phpBB/phpbb/console/command/thumbnail/generate.php19
-rw-r--r--phpBB/phpbb/console/command/thumbnail/recreate.php14
3 files changed, 17 insertions, 32 deletions
diff --git a/phpBB/phpbb/console/command/thumbnail/delete.php b/phpBB/phpbb/console/command/thumbnail/delete.php
index 7c66011d5c..b60ea5238f 100644
--- a/phpBB/phpbb/console/command/thumbnail/delete.php
+++ b/phpBB/phpbb/console/command/thumbnail/delete.php
@@ -13,17 +13,15 @@
namespace phpbb\console\command\thumbnail;
use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Output\OutputInterface;
class delete extends \phpbb\console\command\command
{
- /** @var \phpbb\db\driver\driver_interface */
+ /**
+ * @var \phpbb\db\driver\driver_interface
+ */
protected $db;
- /** @var \phpbb\user */
- protected $user;
-
/**
* phpBB root path
* @var string
@@ -33,16 +31,16 @@ class delete extends \phpbb\console\command\command
/**
* Constructor
*
- * @param \phpbb\db\driver\driver_interface $db Database connection
* @param \phpbb\user $user The user object (used to get language information)
+ * @param \phpbb\db\driver\driver_interface $db Database connection
* @param string $phpbb_root_path Root path
*/
- public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\user $user, $phpbb_root_path)
+ public function __construct(\phpbb\user $user, \phpbb\db\driver\driver_interface $db, $phpbb_root_path)
{
$this->db = $db;
- $this->user = $user;
$this->phpbb_root_path = $phpbb_root_path;
- parent::__construct();
+
+ parent::__construct($user);
}
/**
diff --git a/phpBB/phpbb/console/command/thumbnail/generate.php b/phpBB/phpbb/console/command/thumbnail/generate.php
index c27d91d4d5..640d971b5d 100644
--- a/phpBB/phpbb/console/command/thumbnail/generate.php
+++ b/phpBB/phpbb/console/command/thumbnail/generate.php
@@ -17,13 +17,14 @@ use Symfony\Component\Console\Output\OutputInterface;
class generate extends \phpbb\console\command\command
{
- /** @var \phpbb\db\driver\driver_interface */
+ /**
+ * @var \phpbb\db\driver\driver_interface
+ */
protected $db;
- /** @var \phpbb\user */
- protected $user;
-
- /** @var \phpbb\cache\service */
+ /**
+ * @var \phpbb\cache\service
+ */
protected $cache;
/**
@@ -42,20 +43,20 @@ class generate extends \phpbb\console\command\command
/**
* Constructor
*
- * @param \phpbb\db\driver\driver_interface $db Database connection
* @param \phpbb\user $user The user object (used to get language information)
+ * @param \phpbb\db\driver\driver_interface $db Database connection
* @param \phpbb\cache\service $cache The cache service
* @param string $phpbb_root_path Root path
* @param string $php_ext PHP extension
*/
- public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\user $user, \phpbb\cache\service $cache, $phpbb_root_path, $php_ext)
+ public function __construct(\phpbb\user $user, \phpbb\db\driver\driver_interface $db, \phpbb\cache\service $cache, $phpbb_root_path, $php_ext)
{
$this->db = $db;
- $this->user = $user;
$this->cache = $cache;
$this->phpbb_root_path = $phpbb_root_path;
$this->php_ext = $php_ext;
- parent::__construct();
+
+ parent::__construct($user);
}
/**
diff --git a/phpBB/phpbb/console/command/thumbnail/recreate.php b/phpBB/phpbb/console/command/thumbnail/recreate.php
index dd10da9106..624e4e507f 100644
--- a/phpBB/phpbb/console/command/thumbnail/recreate.php
+++ b/phpBB/phpbb/console/command/thumbnail/recreate.php
@@ -18,20 +18,6 @@ use Symfony\Component\Console\Output\OutputInterface;
class recreate extends \phpbb\console\command\command
{
- /** @var \phpbb\user */
- protected $user;
-
- /**
- * Constructor
- *
- * @param \phpbb\user $user The user object (used to get language information)
- */
- public function __construct(\phpbb\user $user)
- {
- $this->user = $user;
- parent::__construct();
- }
-
/**
* Sets the command name and description
*