Skip to content

Commit

Permalink
Fix autoload in case of phar
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudLigny committed Feb 24, 2014
1 parent 8428894 commit b047840
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phpoole.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
use Zend\Console\Exception\RuntimeException as ConsoleException;

// Composer autoloading
if (file_exists('vendor/autoload.php')) {
$loader = include 'vendor/autoload.php';
if (file_exists(__DIR__ . '/vendor/autoload.php')) {
$loader = include __DIR__ . '/vendor/autoload.php';
}
else {
echo 'Run the following commands:' . PHP_EOL;
Expand Down

0 comments on commit b047840

Please sign in to comment.