Skip to content

Commit

Permalink
Added bin for the composer package.3
Browse files Browse the repository at this point in the history
  • Loading branch information
lotharthesavior committed Oct 10, 2024
1 parent da4773b commit 0cc8f51
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion jackit
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
#!/usr/bin/env php
<?php

require __DIR__.'/vendor/autoload.php';
$autoload = null;
$dir = __DIR__;

for ($i = 0; $i < 6; $i++) {
if (file_exists($dir . '/vendor/autoload.php')) {
$autoload = $dir . '/vendor/autoload.php';
break;
}
$dir = dirname($dir);
}

if ($autoload) {
require $autoload;
} else {
fwrite(STDERR, "Autoload file not found.\n");
exit(1);
}

use JackedPhp\JackedServer\Commands\RunCommand;
use JackedPhp\JackedServer\Services\Server;
Expand Down

0 comments on commit 0cc8f51

Please sign in to comment.