phpbb\install\module\install_finish\task\install_extensions::__construct PHP 메소드

__construct() 공개 메소드

Constructor
public __construct ( phpbb\install\helper\container_factory $container, phpbb\install\helper\config $install_config, phpbb\install\helper\iohandler\iohandler_interface $iohandler, string $phpbb_root_path )
$container phpbb\install\helper\container_factory
$install_config phpbb\install\helper\config
$iohandler phpbb\install\helper\iohandler\iohandler_interface
$phpbb_root_path string phpBB root path
    public function __construct(\phpbb\install\helper\container_factory $container, \phpbb\install\helper\config $install_config, \phpbb\install\helper\iohandler\iohandler_interface $iohandler, $phpbb_root_path)
    {
        $this->install_config = $install_config;
        $this->iohandler = $iohandler;
        $this->extension_table = $container->get_parameter('tables.ext');
        $this->log = $container->get('log');
        $this->user = $container->get('user');
        $this->extension_manager = $container->get('ext.manager');
        $this->config = $container->get('config');
        $this->db = $container->get('dbal.conn');
        $this->finder = new \Symfony\Component\Finder\Finder();
        $this->finder->in($phpbb_root_path . 'ext/')->ignoreUnreadableDirs()->depth('< 3')->files()->name('composer.json');
        // Make sure asset version exists in config. Otherwise we might try to
        // insert the assets_version setting into the database and cause a
        // duplicate entry error.
        if (!isset($this->config['assets_version'])) {
            $this->config['assets_version'] = 0;
        }
        parent::__construct(true);
    }