Skip to content

Commit

Permalink
autolaod fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jul 17, 2023
1 parent a25062e commit f282cc4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/class-leak.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
use TomasVotruba\ClassLeak\Console\ClassLeakApplication;
use TomasVotruba\ClassLeak\DependencyInjection\ContainerFactory;

require_once __DIR__ . '/../vendor/autoload.php';
if (file_exists(__DIR__ . '/../../../../vendor/autoload.php')) {
require_once __DIR__ . '/../../../../vendor/autoload.php';
} else {
require_once __DIR__ . '/../vendor/autoload.php';
}


$containerFactory = new ContainerFactory();
$container = $containerFactory->create();
Expand Down

0 comments on commit f282cc4

Please sign in to comment.