File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ use Symfony\Component\Console\Input\ArgvInput;
9
9
use phpDocumentor \Guides \Cli \Application ;
10
10
use phpDocumentor \Guides \Cli \DependencyInjection \ApplicationExtension ;
11
11
use phpDocumentor \Guides \Cli \DependencyInjection \ContainerFactory ;
12
- use Symfony \Component \Console \Output \ConsoleOutput ;
13
12
14
13
$ vendorDir = dirname (__DIR__ ) . '/../../vendor ' ;
15
14
$ autoloadDirectory = $ vendorDir . '/autoload.php ' ;
@@ -47,11 +46,13 @@ if (is_file($projectConfig)) {
47
46
echo 'Loading guides.xml from ' . $ projectConfig . PHP_EOL ;
48
47
}
49
48
// vendor folder was placed directly into the project directory
50
- $ containerFactory ->addConfigFile ($ projectConfig );
49
+ if ($ projectConfig ) {
50
+ $ containerFactory ->addConfigFile ($ projectConfig );
51
+ }
51
52
}
52
53
53
- $ workingDir = $ input ->getParameterOption ('--working-dir ' , getcwd (), true );
54
- $ localConfig = $ input ->getParameterOption ('--config ' , $ workingDir , true ). '/guides.xml ' ;
54
+ $ workingDir = $ input ->getParameterOption ([ '--working-dir ' , ' -w ' ] , getcwd (), true );
55
+ $ localConfig = $ input ->getParameterOption ([ '--config ' , ' -c ' ], $ workingDir , true ) . '/guides.xml ' ;
55
56
56
57
if (is_file ($ localConfig ) && realpath ($ localConfig ) !== $ projectConfig ) {
57
58
if ($ verbosity === 3 ) {
You can’t perform that action at this time.
0 commit comments