mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/12656] Pass user object into all console commands.
PHPBB3-12656
This commit is contained in:
@@ -17,10 +17,10 @@ abstract class command extends \phpbb\console\command\command
|
||||
/** @var \phpbb\config\config */
|
||||
protected $config;
|
||||
|
||||
function __construct(\phpbb\config\config $config)
|
||||
function __construct(\phpbb\user $user, \phpbb\config\config $config)
|
||||
{
|
||||
$this->config = $config;
|
||||
|
||||
parent::__construct();
|
||||
parent::__construct($user);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user