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