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:
@@ -15,4 +15,17 @@ namespace phpbb\console\command;
|
||||
|
||||
abstract class command extends \Symfony\Component\Console\Command\Command
|
||||
{
|
||||
/** @var \phpbb\user */
|
||||
protected $user;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param \phpbb\user $user User instance (mostly for translation)
|
||||
*/
|
||||
public function __construct(\phpbb\user $user)
|
||||
{
|
||||
$this->user = $user;
|
||||
parent::__construct();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user