File tree Expand file tree Collapse file tree 1 file changed +10
-19
lines changed
Expand file tree Collapse file tree 1 file changed +10
-19
lines changed Original file line number Diff line number Diff line change 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 ();
You can’t perform that action at this time.
0 commit comments