/** * Constructor * * @param \phpbb\install\helper\database $database_helper * @param \phpbb\install\helper\iohandler\iohandler_interface $response */ public function __construct(\phpbb\install\helper\database $database_helper, \phpbb\install\helper\iohandler\iohandler_interface $response) { $this->database_helper = $database_helper; $this->response_helper = $response; $this->tests_passed = true; parent::__construct(true); }
/** * Constructor * * @param \phpbb\install\helper\config $config Installer's config * @param \phpbb\install\helper\iohandler\iohandler_interface $iohandler Installer's input-output handler * @param \phpbb\language\language_file_helper $lang_helper Language file helper */ public function __construct(\phpbb\install\helper\config $config, \phpbb\install\helper\iohandler\iohandler_interface $iohandler, \phpbb\language\language_file_helper $lang_helper) { $this->install_config = $config; $this->io_handler = $iohandler; $this->language_helper = $lang_helper; parent::__construct(true); }
/** * Constructor * * @param \phpbb\install\helper\iohandler\iohandler_interface $iohandler Installer's input-output handler * @param \phpbb\install\helper\container_factory $container Installer's DI container * @param \phpbb\language\language_file_helper $language_helper Language file helper service */ public function __construct(\phpbb\install\helper\iohandler\iohandler_interface $iohandler, \phpbb\install\helper\container_factory $container, \phpbb\language\language_file_helper $language_helper) { $this->db = $container->get('dbal.conn'); $this->iohandler = $iohandler; $this->language_helper = $language_helper; parent::__construct(true); }
/** * Constructor * * @param config $config Installer's config * @param container_factory $container phpBB's DI contianer */ public function __construct(config $config, container_factory $container) { $this->config = $config; $this->extension_manager = $container->get('ext.manager'); $this->migrator = $container->get('migrator'); parent::__construct(true); }
/** * Constructor * * @param config $config * @param iohandler_interface $iohandler * @param filesystem $filesystem */ public function __construct(config $config, iohandler_interface $iohandler, filesystem $filesystem) { $this->installer_config = $config; $this->iohandler = $iohandler; $this->filesystem = $filesystem; parent::__construct(false); }
/** * Constructor * * @param \phpbb\install\helper\database $database_helper Installer's database helper * @param \phpbb\install\helper\config $install_config Installer's config helper * @param \phpbb\install\helper\iohandler\iohandler_interface $iohandler Installer's input-output handler */ public function __construct(\phpbb\install\helper\database $database_helper, \phpbb\install\helper\config $install_config, \phpbb\install\helper\iohandler\iohandler_interface $iohandler) { $this->database_helper = $database_helper; $this->install_config = $install_config; $this->io_handler = $iohandler; parent::__construct(true); }
/** * Constructor * * @param config $installer_config * @param iohandler_interface $iohandler */ public function __construct(config $installer_config, iohandler_interface $iohandler) { $this->installer_config = $installer_config; $this->iohandler = $iohandler; $this->available_methods = array('.tar.gz' => 'zlib', '.tar.bz2' => 'bz2', '.zip' => 'zlib'); parent::__construct(false); }
/** * Constructor * * @param config $installer_config * @param iohandler_interface $iohandler * @param update_helper $update_helper * @param string $php_ext */ public function __construct(config $installer_config, iohandler_interface $iohandler, update_helper $update_helper, $php_ext) { $this->installer_config = $installer_config; $this->iohandler = $iohandler; $this->update_helper = $update_helper; $this->php_ext = $php_ext; parent::__construct(false); }
/** * Constructor * * @param \phpbb\install\helper\iohandler\iohandler_interface $iohandler Installer's input-output handler * @param \phpbb\install\helper\container_factory $container Installer's DI container */ public function __construct(\phpbb\install\helper\iohandler\iohandler_interface $iohandler, \phpbb\install\helper\container_factory $container) { $this->db = $container->get('dbal.conn'); $this->extension_manager = $container->get('ext.manager'); $this->iohandler = $iohandler; $this->module_manager = $container->get('module.manager'); parent::__construct(true); }
/** * Constructor * * @param config $config * @param iohandler_interface $iohandler * @param string $phpbb_root_path * @param string $php_ext */ public function __construct(config $config, iohandler_interface $iohandler, $phpbb_root_path, $php_ext) { $this->installer_config = $config; $this->iohandler = $iohandler; $this->phpbb_root_path = $phpbb_root_path; $this->php_ext = $php_ext; parent::__construct(false); }
/** * Construct * * @param filesystem $filesystem * @param config $config * @param iohandler_interface $iohandler * @param update_helper $update_helper * @param string $phpbb_root_path */ public function __construct(filesystem $filesystem, config $config, iohandler_interface $iohandler, update_helper $update_helper, $phpbb_root_path) { $this->filesystem = $filesystem; $this->installer_config = $config; $this->iohandler = $iohandler; $this->update_helper = $update_helper; $this->phpbb_root_path = $phpbb_root_path; parent::__construct(false); }
/** * Constructor * * @parma config $config Installer's config * @param iohandler_interface $iohandler Installer's input-output handler * @param container_factory $container Installer's DI container */ public function __construct(config $config, iohandler_interface $iohandler, container_factory $container) { $this->config = $config; $this->db = $container->get('dbal.conn'); $this->extension_manager = $container->get('ext.manager'); $this->iohandler = $iohandler; $this->module_manager = $container->get('module.manager'); parent::__construct(true); }
/** * Constructor * * @param container_factory $container * @param config $config * @param iohandler_interface $iohandler * @param filesystem $filesystem * @param factory $file_updater_factory */ public function __construct(container_factory $container, config $config, iohandler_interface $iohandler, filesystem $filesystem, factory $file_updater_factory) { $this->installer_config = $config; $this->iohandler = $iohandler; $this->filesystem = $filesystem; $this->cache = $container->get('cache.driver'); // Initialize compression file updater $this->file_updater = $file_updater_factory->get('compression'); parent::__construct(false); }
/** * Constructor * * @param container_factory $container * @param config $config * @param iohandler_interface $iohandler * @param update_helper $update_helper * @param string $phpbb_root_path * @param string $php_ext */ public function __construct(container_factory $container, config $config, iohandler_interface $iohandler, update_helper $update_helper, $phpbb_root_path, $php_ext) { $this->installer_config = $config; $this->iohandler = $iohandler; $this->update_helper = $update_helper; $this->phpbb_root_path = $phpbb_root_path; $this->php_ext = $php_ext; $this->cache = $container->get('cache.driver'); parent::__construct(false); }
/** * Constructor * * @param \phpbb\install\helper\database $db_helper Installer's database helper * @param \phpbb\install\helper\config $config Installer config * @param \phpbb\install\helper\iohandler\iohandler_interface $iohandler Installer's input-output handler * @param \phpbb\install\helper\container_factory $container Installer's DI container * @param \phpbb\language\language $language Language service * @param string $root_path Root path of phpBB */ public function __construct(\phpbb\install\helper\database $db_helper, \phpbb\install\helper\config $config, \phpbb\install\helper\iohandler\iohandler_interface $iohandler, \phpbb\install\helper\container_factory $container, \phpbb\language\language $language, $root_path) { $this->db = $container->get('dbal.conn.driver'); $this->database_helper = $db_helper; $this->config = $config; $this->iohandler = $iohandler; $this->language = $language; $this->phpbb_root_path = $root_path; parent::__construct(true); }
/** * Constructor * * @param \phpbb\filesystem\filesystem_interface $filesystem * @param \phpbb\install\helper\config $install_config * @param \phpbb\install\helper\database $db_helper * @param \phpbb\install\helper\iohandler\iohandler_interface $iohandler * @param string $phpbb_root_path * @param string $php_ext */ public function __construct(\phpbb\filesystem\filesystem_interface $filesystem, \phpbb\install\helper\config $install_config, \phpbb\install\helper\database $db_helper, \phpbb\install\helper\iohandler\iohandler_interface $iohandler, $phpbb_root_path, $php_ext) { $this->install_config = $install_config; $this->db_helper = $db_helper; $this->filesystem = $filesystem; $this->iohandler = $iohandler; $this->phpbb_root_path = $phpbb_root_path; $this->php_ext = $php_ext; parent::__construct(true); }
/** * Constructor * * @param \phpbb\filesystem\filesystem_interface $filesystem filesystem handler * @param \phpbb\install\helper\iohandler\iohandler_interface $response response helper * @param string $phpbb_root_path relative path to phpBB's root * @param string $php_ext extension of php files */ public function __construct(\phpbb\filesystem\filesystem_interface $filesystem, \phpbb\install\helper\iohandler\iohandler_interface $response, $phpbb_root_path, $php_ext) { parent::__construct(true); $this->filesystem = $filesystem; $this->response = $response; $this->phpbb_root_path = $phpbb_root_path; $this->tests_passed = false; // Files/Directories to check // All file/directory names must be relative to phpBB's root path $this->files_to_check = array(array('path' => 'cache/', 'failable' => false, 'is_file' => false), array('path' => 'store/', 'failable' => false, 'is_file' => false), array('path' => 'files/', 'failable' => false, 'is_file' => false), array('path' => 'images/avatars/upload/', 'failable' => true, 'is_file' => false), array('path' => "config.{$php_ext}", 'failable' => false, 'is_file' => true)); }
/** * Constructor * * @param \phpbb\filesystem\filesystem_interface $filesystem * @param \phpbb\install\helper\config $install_config * @param \phpbb\install\helper\database $db_helper * @param \phpbb\install\helper\iohandler\iohandler_interface $iohandler * @param string $phpbb_root_path * @param string $php_ext * @param array $options */ public function __construct(\phpbb\filesystem\filesystem_interface $filesystem, \phpbb\install\helper\config $install_config, \phpbb\install\helper\database $db_helper, \phpbb\install\helper\iohandler\iohandler_interface $iohandler, $phpbb_root_path, $php_ext, $options = array()) { $this->install_config = $install_config; $this->db_helper = $db_helper; $this->filesystem = $filesystem; $this->iohandler = $iohandler; $this->phpbb_root_path = $phpbb_root_path; $this->php_ext = $php_ext; $this->options = array_merge(array('debug' => false, 'debug_container' => false, 'environment' => null), $options); parent::__construct(true); }
/** * Constructor * * @param container_factory $container * @param filesystem $filesystem * @param iohandler_interface $iohandler * @param update_helper $update_helper * @param string $phpbb_root_path * @param string $php_ext */ public function __construct(container_factory $container, filesystem $filesystem, iohandler_interface $iohandler, update_helper $update_helper, $phpbb_root_path, $php_ext) { $this->filesystem = $filesystem; $this->iohandler = $iohandler; $this->update_helper = $update_helper; $this->phpbb_root_path = $phpbb_root_path; $this->php_ext = $php_ext; $this->tests_passed = true; $this->config = $container->get('config'); $this->version_helper = $container->get('version_helper'); parent::__construct(true); }
/** * Constructor * * @param \phpbb\install\helper\config $config Installer's config provider * @param \phpbb\install\helper\database $db_helper Installer's database helper * @param \phpbb\filesystem\filesystem_interface $filesystem Filesystem service * @param string $phpbb_root_path Path phpBB's root * @param string $php_ext Extension of PHP files */ public function __construct(\phpbb\install\helper\config $config, \phpbb\install\helper\database $db_helper, \phpbb\filesystem\filesystem_interface $filesystem, $phpbb_root_path, $php_ext) { $dbms = $db_helper->get_available_dbms($config->get('dbms')); $dbms = $dbms[$config->get('dbms')]['DRIVER']; $this->db = new $dbms(); $this->db->sql_connect($config->get('dbhost'), $config->get('dbuser'), $config->get('dbpasswd'), $config->get('dbname'), $config->get('dbport'), false, false); $this->config = $config; $this->filesystem = $filesystem; $this->phpbb_root_path = $phpbb_root_path; $this->php_ext = $php_ext; parent::__construct(true); }
/** * Constructor * * @param \phpbb\install\helper\config $config * @param \phpbb\install\helper\database $db_helper * @param \phpbb\filesystem\filesystem_interface $filesystem * @param string $phpbb_root_path */ public function __construct(\phpbb\install\helper\config $config, \phpbb\install\helper\database $db_helper, \phpbb\filesystem\filesystem_interface $filesystem, $phpbb_root_path) { $dbms = $db_helper->get_available_dbms($config->get('dbms')); $dbms = $dbms[$config->get('dbms')]['DRIVER']; $factory = new \phpbb\db\tools\factory(); $this->db = new $dbms(); $this->db->sql_connect($config->get('dbhost'), $config->get('dbuser'), $config->get('dbpasswd'), $config->get('dbname'), $config->get('dbport'), false, false); $this->config = $config; $this->db_tools = $factory->get($this->db); $this->filesystem = $filesystem; $this->schema_file_path = $phpbb_root_path . 'store/schema.json'; parent::__construct(true); }
/** * Constructor * * @param \phpbb\install\helper\container_factory $container * @param \phpbb\install\helper\config $install_config * @param \phpbb\install\helper\iohandler\iohandler_interface $iohandler * @param string $phpbb_root_path * @param string $php_ext */ 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, $php_ext) { $this->install_config = $install_config; $this->iohandler = $iohandler; $this->auth = $container->get('auth'); $this->language = $container->get('language'); $this->log = $container->get('log'); $this->user = $container->get('user'); $this->phpbb_root_path = $phpbb_root_path; $this->php_ext = $php_ext; // We need to reload config for cases when it doesn't have all values $this->config = new db($container->get('dbal.conn'), $container->get('cache.driver'), $container->get_parameter('tables.config')); parent::__construct(true); }
/** * Constructor * * @param \phpbb\install\helper\container_factory $container * @param \phpbb\install\helper\config $install_config * @param \phpbb\install\helper\iohandler\iohandler_interface $iohandler * @param string $phpbb_root_path 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); }
/** * Constructor * * @param \phpbb\install\helper\config $config Installer's config */ public function __construct(\phpbb\install\helper\config $config) { $this->config = $config; parent::__construct(true); }
/** * Constructor * * @param \phpbb\install\helper\config $install_config Installer's config * @param \phpbb\install\helper\iohandler\iohandler_interface $iohandler Input-output handler for the installer * @param \phpbb\install\helper\container_factory $container Installer's DI container * @param \phpbb\language\language $language Language provider * @param string $phpbb_root_path Relative path to phpBB root * @param string $php_ext PHP extension */ public function __construct(\phpbb\install\helper\config $install_config, \phpbb\install\helper\iohandler\iohandler_interface $iohandler, \phpbb\install\helper\container_factory $container, \phpbb\language\language $language, $phpbb_root_path, $php_ext) { parent::__construct(true); $this->db = $container->get('dbal.conn'); $this->install_config = $install_config; $this->io_handler = $iohandler; $this->language = $language; $this->phpbb_root_path = $phpbb_root_path; $this->php_ext = $php_ext; }
/** * Constructor * * @param config $installer_config * @param iohandler_interface $iohandler */ public function __construct(config $installer_config, iohandler_interface $iohandler) { $this->installer_config = $installer_config; $this->iohandler = $iohandler; parent::__construct(true); }
/** * Constructor * * @param \phpbb\install\helper\container_factory $container * @param \phpbb\filesystem\filesystem $filesystem * @param \phpbb\install\helper\config $installer_config * @param \phpbb\install\helper\iohandler\iohandler_interface $iohandler * @param \phpbb\language\language $language * @param string $phpbb_root_path */ public function __construct(\phpbb\install\helper\container_factory $container, \phpbb\filesystem\filesystem $filesystem, \phpbb\install\helper\config $installer_config, \phpbb\install\helper\iohandler\iohandler_interface $iohandler, \phpbb\language\language $language, $phpbb_root_path) { $this->filesystem = $filesystem; $this->installer_config = $installer_config; $this->iohandler = $iohandler; $this->language = $language; $this->phpbb_root_path = $phpbb_root_path; $this->cache = $container->get('cache.driver'); $this->config = $container->get('config'); $this->extension_manager = $container->get('ext.manager'); $this->log = $container->get('log'); $this->migrator = $container->get('migrator'); $this->user = $container->get('user'); parent::__construct(true); }
public function __construct() { $this->task_was_runned = false; parent::__construct(); }
/** * Constructor * * @param \phpbb\filesystem\filesystem_interface $filesystem Filesystem service * @param \phpbb\install\helper\config $install_config Installer's config helper * @param \phpbb\install\helper\iohandler\iohandler_interface $iohandler Installer's input-output handler * @param \phpbb\install\helper\container_factory $container Installer's DI container * @param \phpbb\language\language $language Language service * @param string $phpbb_root_path Path to phpBB's root */ public function __construct(\phpbb\filesystem\filesystem_interface $filesystem, \phpbb\install\helper\config $install_config, \phpbb\install\helper\iohandler\iohandler_interface $iohandler, \phpbb\install\helper\container_factory $container, \phpbb\language\language $language, $phpbb_root_path) { $this->db = $container->get('dbal.conn'); $this->filesystem = $filesystem; $this->install_config = $install_config; $this->iohandler = $iohandler; $this->language = $language; $this->password_manager = $container->get('passwords.manager'); $this->phpbb_root_path = $phpbb_root_path; // Table names $this->config_table = $container->get_parameter('tables.config'); $this->forums_table = $container->get_parameter('tables.forums'); $this->topics_table = $container->get_parameter('tables.topics'); $this->user_table = $container->get_parameter('tables.users'); $this->moderator_cache_table = $container->get_parameter('tables.moderator_cache'); $this->posts_table = $container->get_parameter('tables.posts'); parent::__construct(true); }
/** * Constructor * * @param \phpbb\install\helper\container_factory $container phpBB's DI contianer */ public function __construct(\phpbb\install\helper\container_factory $container) { $this->extension_manager = $container->get('ext.manager'); $this->migrator = $container->get('migrator'); parent::__construct(true); }