Skip to content

Commit ce7724c

Browse files
committed
Fix path issues
1 parent fb3d541 commit ce7724c

File tree

1 file changed

+10
-19
lines changed

1 file changed

+10
-19
lines changed

devstack

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,16 @@
11
#!/usr/bin/env php
22
<?php
33

4-
$root = dirname(__DIR__);
4+
if (file_exists($autoload = __DIR__ . '/vendor/autoload.php')) {
5+
require $autoload;
6+
} else {
7+
require __DIR__ . '/../autoload.php';
8+
}
59

6-
echo $root . "\n";
7-
echo __DIR__ . "\n";
8-
echo dirname(__FILE__) . "\n";
910

10-
// if (! is_file(sprintf('%s/vendor/autoload.php', $root))) {
11-
// $root = dirname(__DIR__, 4);
12-
// }
11+
use Symfony\Component\Console\Application;
12+
use Webteractive\Devstack\InitStack;
1313

14-
// require sprintf('%s/vendor/autoload.php', $root);
15-
16-
17-
18-
// use Symfony\Component\Console\Application;
19-
// use Webteractive\Devstack\InitStack;
20-
21-
// $application = new Application();
22-
23-
// $application->add(new InitStack);
24-
25-
// $application->run();
14+
$application = new Application();
15+
$application->add(new InitStack);
16+
$application->run();

0 commit comments

Comments
 (0)