Skip to content

Commit

Permalink
Cleaning up, removing iteration over parent directories as location o…
Browse files Browse the repository at this point in the history
…f autoload.php can be determined eagerly
  • Loading branch information
Ocramius committed Jun 9, 2012
1 parent 8231fb2 commit 2f83cf0
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions bin/doctrine.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,7 @@
* <http://www.doctrine-project.org>.
*/

$previousDir = null;
$currentDir = __DIR__;

while ($previousDir !== $currentDir && !@include_once($currentDir . '/vendor/autoload.php')) {
$previousDir = $currentDir;
$currentDir = dirname($currentDir);
}

(@include_once __DIR__ . '/../vendor/autoload.php') || @include_once __DIR__ . '/../../../autoload.php';
$configFile = getcwd() . DIRECTORY_SEPARATOR . 'cli-config.php';

$helperSet = null;
Expand Down

0 comments on commit 2f83cf0

Please sign in to comment.