Removes symlinked autoload code

This commit is contained in:
Nuno Maduro
2022-09-25 23:40:21 +01:00
parent 42c10f9a62
commit f214a78c75

View File

@ -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.
$vendorPath = dirname(__DIR__, 4) . '/vendor/autoload.php';
// Used when Pest maintainers are running Pest tests.
$localPath = dirname(__DIR__) . '/vendor/autoload.php';
if (file_exists($symlinkedPath)) {
include_once $symlinkedPath;
$autoloadPath = $symlinkedPath;
} else if (file_exists($vendorPath)) {
if (file_exists($vendorPath)) {
include_once $vendorPath;
$autoloadPath = $vendorPath;
} else {