mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/12631] Add finder.not_use_cache
PHPBB3-12631
This commit is contained in:
committed by
Marc Alexander
parent
38024d14bf
commit
9308764fae
@@ -45,6 +45,11 @@ class create_schema_file extends \phpbb\install\task_base
|
||||
*/
|
||||
protected $php_ext;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $not_use_cache;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
@@ -58,7 +63,8 @@ class create_schema_file extends \phpbb\install\task_base
|
||||
\phpbb\install\helper\database $db_helper,
|
||||
\phpbb\filesystem\filesystem_interface $filesystem,
|
||||
$phpbb_root_path,
|
||||
$php_ext)
|
||||
$php_ext,
|
||||
$not_use_cache)
|
||||
{
|
||||
$dbms = $db_helper->get_available_dbms($config->get('dbms'));
|
||||
$dbms = $dbms[$config->get('dbms')]['DRIVER'];
|
||||
@@ -78,6 +84,7 @@ class create_schema_file extends \phpbb\install\task_base
|
||||
$this->filesystem = $filesystem;
|
||||
$this->phpbb_root_path = $phpbb_root_path;
|
||||
$this->php_ext = $php_ext;
|
||||
$this->not_use_cache = $not_use_cache;
|
||||
|
||||
parent::__construct(true);
|
||||
}
|
||||
@@ -117,7 +124,7 @@ class create_schema_file extends \phpbb\install\task_base
|
||||
include ($this->phpbb_root_path . 'includes/constants.' . $this->php_ext);
|
||||
}
|
||||
|
||||
$finder = new \phpbb\finder($this->phpbb_root_path, null, $this->php_ext);
|
||||
$finder = new \phpbb\finder\finder(null, true, $this->phpbb_root_path, $this->php_ext);
|
||||
$migrator_classes = $finder->core_path('phpbb/db/migration/data/')->get_classes();
|
||||
$factory = new \phpbb\db\tools\factory();
|
||||
$db_tools = $factory->get($this->db, true);
|
||||
|
Reference in New Issue
Block a user