Skip to content

Commit

Permalink
Merge pull request #2 from ngmy/hotfix/fix_autoloading_issue_when_ins…
Browse files Browse the repository at this point in the history
…talling_by_composer

 Fix an autoloading issue when installing by the Composer
  • Loading branch information
ngmy committed Nov 25, 2018
2 parents 452d57b + c28210c commit d932589
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion bin/phpinfocmp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
<?php
declare(strict_types=1);

require __DIR__ . '/../vendor/autoload.php';
if (file_exists(__DIR__ . '/../../../autoload.php')) {
require __DIR__ . '/../../../autoload.php';
} else {
require __DIR__ . '/../vendor/autoload.php';
}

use Ngmy\PhpinfoComparator\Application\Runner;
use Ngmy\PhpinfoComparator\Infrastructure\{
Expand Down
2 changes: 1 addition & 1 deletion src/Infrastructure/ConsoleCommandLineParserFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public static function create(): Console_CommandLine
{
$parser = new Console_CommandLine([
'description' => 'phpinfo comparator',
'version' => '0.1.0',
'version' => '0.2.0',
]);

$parser->addOption('fetch_mode1', [
Expand Down

0 comments on commit d932589

Please sign in to comment.