Skip to content

Commit d5196f4

Browse files
fain182micheleorselli
authored andcommitted
simplify
1 parent 5b5edfb commit d5196f4

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

bin-stub/phparkitect

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,7 @@ declare(strict_types=1);
44

55
use Arkitect\CLI\PhpArkitectApplication;
66

7-
foreach (array(__DIR__ . '/../../../autoload.php', __DIR__ . '/../../autoload.php', __DIR__ . '/../vendor/autoload.php', __DIR__ . '/vendor/autoload.php') as $file) {
8-
if (file_exists($file)) {
9-
define('PHPARKITECT_COMPOSER_INSTALL', $file);
10-
11-
break;
12-
}
13-
}
14-
15-
unset($file);
16-
17-
if (!defined('PHPARKITECT_COMPOSER_INSTALL')) {
18-
fwrite(
19-
STDERR,
20-
'You need to set up the project dependencies using Composer:' . PHP_EOL . PHP_EOL .
21-
' composer install' . PHP_EOL . PHP_EOL .
22-
'You can learn all about Composer on https://getcomposer.org/.' . PHP_EOL
23-
);
24-
25-
die(1);
26-
}
27-
28-
require PHPARKITECT_COMPOSER_INSTALL;
7+
require __DIR__ . '/../vendor/autoload.php';
298

309
$application = new PhpArkitectApplication();
3110

0 commit comments

Comments
 (0)