We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1f69ca0 + 25cc1c3 commit 425754dCopy full SHA for 425754d
packages/guides-cli/bin/guides
@@ -33,8 +33,13 @@ if (file_exists($autoloadDirectory)){
33
$input = new ArgvInput();
34
35
$containerFactory = new ContainerFactory([new ApplicationExtension()]);
36
+
37
+if (is_file($vendorDir . '/../guides.xml')) {
38
+ // vendor folder was placed directly into the project directory
39
+ $containerFactory->addConfigFile($vendorDir . '/../guides.xml');
40
+}
41
if (is_file($input->getParameterOption('--config', getcwd(), true).'/guides.xml')) {
- $containerFactory->addConfigFile('guides.xml');
42
+ $containerFactory->addConfigFile($input->getParameterOption('--config', getcwd(), true).'/guides.xml');
43
}
44
$container = $containerFactory->create($vendorDir);
45
0 commit comments