phpbb\console\command\db\migration_command::__construct PHP Method

__construct() public method

public __construct ( phpbb\user $user, phpbb\db\migrator $migrator, phpbb\extension\manager $extension_manager, phpbb\config\config $config, phpbb\cache\service $cache )
$user phpbb\user
$migrator phpbb\db\migrator
$extension_manager phpbb\extension\manager
$config phpbb\config\config
$cache phpbb\cache\service
    public function __construct(\phpbb\user $user, \phpbb\db\migrator $migrator, \phpbb\extension\manager $extension_manager, \phpbb\config\config $config, \phpbb\cache\service $cache)
    {
        $this->migrator = $migrator;
        $this->extension_manager = $extension_manager;
        $this->config = $config;
        $this->cache = $cache;
        parent::__construct($user);
    }

Usage Example

Beispiel #1
0
	function __construct(\phpbb\user $user, \phpbb\db\migrator $migrator, \phpbb\extension\manager $extension_manager, \phpbb\config\config $config, \phpbb\cache\service $cache, \phpbb\filesystem\filesystem_interface $filesystem, $phpbb_root_path)
	{
		$this->filesystem = $filesystem;
		$this->phpbb_root_path = $phpbb_root_path;
		parent::__construct($user, $migrator, $extension_manager, $config, $cache);
		$this->user->add_lang(array('common', 'migrator'));
	}