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;
99use phpDocumentor \Guides \Cli \Application ;
1010use phpDocumentor \Guides \Cli \DependencyInjection \ApplicationExtension ;
1111use phpDocumentor \Guides \Cli \DependencyInjection \ContainerFactory ;
12- use Symfony \Component \Console \Output \ConsoleOutput ;
1312
1413$ vendorDir = dirname (__DIR__ ) . '/../../vendor ' ;
1514$ autoloadDirectory = $ vendorDir . '/autoload.php ' ;
@@ -47,11 +46,13 @@ if (is_file($projectConfig)) {
4746 echo 'Loading guides.xml from ' . $ projectConfig . PHP_EOL ;
4847 }
4948 // vendor folder was placed directly into the project directory
50- $ containerFactory ->addConfigFile ($ projectConfig );
49+ if ($ projectConfig ) {
50+ $ containerFactory ->addConfigFile ($ projectConfig );
51+ }
5152}
5253
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 ' ;
5556
5657if (is_file ($ localConfig ) && realpath ($ localConfig ) !== $ projectConfig ) {
5758 if ($ verbosity === 3 ) {
You can’t perform that action at this time.
0 commit comments