This repository was archived by the owner on Apr 29, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/Behat/Symfony2Extension/ServiceContainer Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 34
34
class Symfony2Extension implements ExtensionInterface
35
35
{
36
36
const KERNEL_ID = 'symfony2_extension.kernel ' ;
37
+ const DEFAULT_KERNEL_BOOTSTRAP = 'app/autoload.php ' ;
37
38
38
39
/**
39
40
* {@inheritdoc}
@@ -70,7 +71,7 @@ public function configure(ArrayNodeDefinition $builder)
70
71
->arrayNode ('kernel ' )
71
72
->addDefaultsIfNotSet ()
72
73
->children ()
73
- ->scalarNode ('bootstrap ' )->defaultValue (' app/autoload.php ' )->end ()
74
+ ->scalarNode ('bootstrap ' )->defaultValue (self :: DEFAULT_KERNEL_BOOTSTRAP )->end ()
74
75
->scalarNode ('path ' )->defaultValue ('app/AppKernel.php ' )->end ()
75
76
->scalarNode ('class ' )->defaultValue ('AppKernel ' )->end ()
76
77
->scalarNode ('env ' )->defaultValue ('test ' )->end ()
@@ -125,7 +126,7 @@ public function process(ContainerBuilder $container)
125
126
require_once ($ bootstrap );
126
127
} elseif (file_exists ($ bootstrapPath )) {
127
128
require_once ($ bootstrapPath );
128
- } else {
129
+ } elseif ( $ bootstrapPath !== self :: DEFAULT_KERNEL_BOOTSTRAP ) {
129
130
throw new ProcessingException (
130
131
'Could not load bootstrap file. Please check your configuration at "kernel.bootstrap" '
131
132
);
You can’t perform that action at this time.
0 commit comments