Skip to content

Commit b9b600c

Browse files
committed
Merge pull request #17 from VSEphpbb/master-updates
Update extension finder and debug container
2 parents a09ea47 + 46335f5 commit b9b600c

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

tests/framework/extension_database_test_case.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,10 @@ public function getConnection()
7979
// If there are any migrations, load and run them all
8080
if (file_exists($migrations_path) && is_dir($migrations_path))
8181
{
82-
$finder = $phpbb_container->get('ext.finder');
83-
$migrator = $phpbb_container->get('migrator');
82+
global $phpbb_extension_manager;
83+
$finder = $phpbb_extension_manager->get_finder();
84+
85+
$migrator = $this->container->get('migrator');
8486

8587
$migrations = array();
8688
$vendor_ext = $this->get_vendor_ext($phpbb_root_path);
@@ -194,7 +196,7 @@ protected function create_config_file($phpbb_root_path, $phpEx)
194196
195197
@define('PHPBB_INSTALLED', true);
196198
@define('DEBUG', true);
197-
@define('DEBUG_CONTAINER', true);
199+
@define('DEBUG_CONTAINER', false);
198200
199201
";
200202
if (file_put_contents($phpbb_root_path . 'config.' . $phpEx, $contents) === false)

0 commit comments

Comments
 (0)