phpbb\install\module\update_database\task\update_extensions::__construct PHP Method

__construct() public method

Constructor
public __construct ( phpbb\install\helper\container_factory $container, phpbb\install\helper\config $install_config, phpbb\install\helper\iohandler\iohandler_interface $iohandler, phpbb\install\helper\update_helper $update_helper, string $phpbb_root_path )
$container phpbb\install\helper\container_factory
$install_config phpbb\install\helper\config
$iohandler phpbb\install\helper\iohandler\iohandler_interface
$update_helper phpbb\install\helper\update_helper $update_helper
$phpbb_root_path string phpBB root path
    public function __construct(container_factory $container, config $install_config, iohandler_interface $iohandler, update_helper $update_helper, $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->cache = $container->get('cache.driver');
        $this->config = $container->get('config');
        $this->db = $container->get('dbal.conn');
        $this->update_helper = $update_helper;
        $this->finder = new 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);
    }