File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 10
10
* the LICENSE file that was distributed with this source code.
11
11
*/
12
12
13
+ // Autoload need to happen before the use of use.
14
+ try {
15
+ require dirname (__FILE__ ) . '/bootstrap/autoload.php ' ;
16
+ } catch (\Throwable $ e ) {
17
+ fwrite (STDERR , $ e ->getMessage () . PHP_EOL );
18
+ exit (1 );
19
+ }
20
+
13
21
use Phalcon \DevTools \Commands \Builtin \AllModels ;
14
22
use Phalcon \DevTools \Commands \Builtin \Console ;
15
23
use Phalcon \DevTools \Commands \Builtin \Controller ;
@@ -30,8 +38,6 @@ use Phalcon\DevTools\Version;
30
38
use Phalcon \Events \Manager as EventsManager ;
31
39
32
40
try {
33
- require dirname (__FILE__ ) . '/bootstrap/autoload.php ' ;
34
-
35
41
$ vendor = sprintf ('Phalcon DevTools (%s) ' , (new Version ())->get ());
36
42
print PHP_EOL . Color::colorize ($ vendor , Color::FG_GREEN , Color::AT_BOLD ) . PHP_EOL . PHP_EOL ;
37
43
Original file line number Diff line number Diff line change 12
12
13
13
namespace Phalcon \DevTools ;
14
14
15
- use Phalcon \support \Version as PhVersion ;
15
+ use Phalcon \Support \Version as PhVersion ;
16
16
17
17
/**
18
18
* This class allows to get the installed version of the Developer Tools
You can’t perform that action at this time.
0 commit comments