Skip to content

Commit

Permalink
Fix script again.
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed Nov 22, 2023
1 parent d6563e7 commit 3f7b78c
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions bin/queue
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,7 @@ use Symfony\Component\Console\Application;
use Yiisoft\Di\Container;
use Yiisoft\Di\ContainerConfig;

$vendorPath = null;

$composerAutoload = [
__DIR__ . '/../vendor/autoload.php', // in yii2-dev repo
__DIR__ . '/../../autoload.php', // installed as a composer binary
];

foreach ($composerAutoload as $autoload) {
if (file_exists($autoload)) {
require_once $autoload;

$vendorPath = dirname($autoload);

break;
}
}

if ($vendorPath === null) {
fwrite(STDERR, 'Can not find vendor/autoload.php' . PHP_EOL);
exit(1);
}
require_once './vendor/autoload.php';

/** @var array $definitions */
$definitions = require_once 'definitions.php';
Expand Down

0 comments on commit 3f7b78c

Please sign in to comment.