diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-03-28 21:01:07 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-03-29 11:01:04 +0100 |
commit | b0aa366b12d7884f5ae4cc3684e943a8be44129a (patch) | |
tree | 96098070d2dfb5a8606fd798b50ac08d8c842f93 /phpBB/phpbb | |
parent | ac6f0c94bfbb64a25aee07077327d52d6cb66620 (diff) | |
download | forums-b0aa366b12d7884f5ae4cc3684e943a8be44129a.tar forums-b0aa366b12d7884f5ae4cc3684e943a8be44129a.tar.gz forums-b0aa366b12d7884f5ae4cc3684e943a8be44129a.tar.bz2 forums-b0aa366b12d7884f5ae4cc3684e943a8be44129a.tar.xz forums-b0aa366b12d7884f5ae4cc3684e943a8be44129a.zip |
[ticket/11459] Pass array with migration class names to schema generator
PHPBB3-11459
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r-- | phpBB/phpbb/db/migration/schema_generator.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/phpbb/db/migration/schema_generator.php b/phpBB/phpbb/db/migration/schema_generator.php index fb47cdb22b..a7e2fa8f06 100644 --- a/phpBB/phpbb/db/migration/schema_generator.php +++ b/phpBB/phpbb/db/migration/schema_generator.php @@ -25,8 +25,8 @@ class schema_generator /** @var \phpbb\db\tools */ protected $db_tools; - /** @var \phpbb\extension\finder */ - protected $finder; + /** @var array */ + protected $class_names; /** @var string */ protected $table_prefix; @@ -43,12 +43,12 @@ class schema_generator /** * Constructor */ - public function __construct(\phpbb\extension\finder $finder, \phpbb\config\config $config, \phpbb\db\driver\driver $db, \phpbb\db\tools $db_tools, $phpbb_root_path, $php_ext, $table_prefix) + public function __construct(array $class_names, \phpbb\config\config $config, \phpbb\db\driver\driver $db, \phpbb\db\tools $db_tools, $phpbb_root_path, $php_ext, $table_prefix) { $this->config = $config; $this->db = $db; $this->db_tools = $db_tools; - $this->finder = $finder; + $this->class_names = $class_names; $this->phpbb_root_path = $phpbb_root_path; $this->php_ext = $php_ext; $this->table_prefix = $table_prefix; @@ -66,7 +66,7 @@ class schema_generator return $this->tables; } - $migrations = $this->finder->get_classes(); + $migrations = $this->class_names; $tree = array(); while (!empty($migrations)) |