mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
Removes symlinked autoload code
This commit is contained in:
9
bin/pest
9
bin/pest
@ -26,20 +26,13 @@ use Symfony\Component\Console\Output\OutputInterface;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Used when Pest is symlinked.
|
|
||||||
$symlinkedPath = getcwd() . '/vendor/autoload.php';
|
|
||||||
|
|
||||||
// Used when Pest is required using composer.
|
// Used when Pest is required using composer.
|
||||||
$vendorPath = dirname(__DIR__, 4) . '/vendor/autoload.php';
|
$vendorPath = dirname(__DIR__, 4) . '/vendor/autoload.php';
|
||||||
|
|
||||||
// Used when Pest maintainers are running Pest tests.
|
// Used when Pest maintainers are running Pest tests.
|
||||||
$localPath = dirname(__DIR__) . '/vendor/autoload.php';
|
$localPath = dirname(__DIR__) . '/vendor/autoload.php';
|
||||||
|
|
||||||
if (file_exists($symlinkedPath)) {
|
if (file_exists($vendorPath)) {
|
||||||
include_once $symlinkedPath;
|
|
||||||
$autoloadPath = $symlinkedPath;
|
|
||||||
|
|
||||||
} else if (file_exists($vendorPath)) {
|
|
||||||
include_once $vendorPath;
|
include_once $vendorPath;
|
||||||
$autoloadPath = $vendorPath;
|
$autoloadPath = $vendorPath;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user