diff options
author | Andreas Fischer <bantu@phpbb.com> | 2014-07-17 17:19:36 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2014-07-17 20:37:24 +0200 |
commit | 07ce29c081c8bbd24a5094d89346be33dda583c5 (patch) | |
tree | f2ad07531041bbc70a49ead9d3fbca4c3e0205d6 /phpBB/phpbb/console/command/command.php | |
parent | 42477861a45935b10285a1434f4ffaf5b199c5c2 (diff) | |
download | forums-07ce29c081c8bbd24a5094d89346be33dda583c5.tar forums-07ce29c081c8bbd24a5094d89346be33dda583c5.tar.gz forums-07ce29c081c8bbd24a5094d89346be33dda583c5.tar.bz2 forums-07ce29c081c8bbd24a5094d89346be33dda583c5.tar.xz forums-07ce29c081c8bbd24a5094d89346be33dda583c5.zip |
[ticket/12656] Pass user object into all console commands.
PHPBB3-12656
Diffstat (limited to 'phpBB/phpbb/console/command/command.php')
-rw-r--r-- | phpBB/phpbb/console/command/command.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/phpBB/phpbb/console/command/command.php b/phpBB/phpbb/console/command/command.php index d3449c0c38..638c989da2 100644 --- a/phpBB/phpbb/console/command/command.php +++ b/phpBB/phpbb/console/command/command.php @@ -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(); + } } |