1
0
mirror of synced 2024-12-05 03:06:05 +03:00

Cleaning up, removing iteration over parent directories as location of autoload.php can be determined eagerly

This commit is contained in:
Marco Pivetta 2012-06-09 14:41:39 +02:00
parent 8231fb2c68
commit 2f83cf0dbd

View File

@ -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;