Merge pull request #131 from sminnee/core-reference-fix

Core reference fix
This commit is contained in:
Damian Mooyman 2016-11-01 15:15:42 +13:00 committed by GitHub
commit 04696ef5a1
5 changed files with 5 additions and 6 deletions

View File

@ -52,7 +52,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "2.0.x-dev"
"dev-master": "2.1.x-dev"
}
},
"prefer-stable": true,

View File

@ -19,9 +19,8 @@ class CoreInitializationPass implements CompilerPassInterface
public function process(ContainerBuilder $container)
{
// Connect to database and build manifest
$frameworkPath = $container->getParameter('behat.silverstripe_extension.framework_path');
$_GET['flush'] = 1;
require_once $frameworkPath . '/Core/Core.php';
require_once('Core/Core.php');
SapphireTest::use_test_manifest();

View File

@ -66,7 +66,7 @@ class InitProcessor extends BaseProcessor
// Bootstrap SS so we can use module listing
$frameworkPath = $this->container->getParameter('behat.silverstripe_extension.framework_path');
$_GET['flush'] = 1;
require_once $frameworkPath . '/Core/Core.php';
require_once('Core/Core.php');
unset($_GET['flush']);
$featuresPath = $input->getArgument('features');

View File

@ -203,7 +203,7 @@ class SilverStripeAwareInitializer implements InitializerInterface
// Connect to database and build manifest
$_GET['flush'] = 1;
require_once $frameworkPath . '/Core/Core.php';
require_once('Core/Core.php');
unset($_GET['flush']);
// Remove the error handler so that PHPUnit can add its own

View File

@ -4,4 +4,4 @@ $frameworkDir = basename($frameworkPath);
if (!defined('BASE_PATH')) {
define('BASE_PATH', dirname($frameworkPath));
}
require_once $frameworkPath . '/Core/Core.php';
require_once 'Core/Core.php';