Skip to content

Commit 4cbc7a8

Browse files
committed
simplify
1 parent 186a2f0 commit 4cbc7a8

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
@@ -7,28 +7,7 @@ use Arkitect\CLI\Check;
77
use Arkitect\CLI\Command\Init;
88
use Arkitect\CLI\Version;
99

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

3312
$application = new Application('PHPArkitect', Version::get());
3413

0 commit comments

Comments
 (0)