File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1010 * the LICENSE file that was distributed with this source code.
1111 */
1212
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+
1321use Phalcon \DevTools \Commands \Builtin \AllModels ;
1422use Phalcon \DevTools \Commands \Builtin \Console ;
1523use Phalcon \DevTools \Commands \Builtin \Controller ;
@@ -30,8 +38,6 @@ use Phalcon\DevTools\Version;
3038use Phalcon \Events \Manager as EventsManager ;
3139
3240try {
33- require dirname (__FILE__ ) . '/bootstrap/autoload.php ' ;
34-
3541 $ vendor = sprintf ('Phalcon DevTools (%s) ' , (new Version ())->get ());
3642 print PHP_EOL . Color::colorize ($ vendor , Color::FG_GREEN , Color::AT_BOLD ) . PHP_EOL . PHP_EOL ;
3743
Original file line number Diff line number Diff line change 1212
1313namespace Phalcon \DevTools ;
1414
15- use Phalcon \support \Version as PhVersion ;
15+ use Phalcon \Support \Version as PhVersion ;
1616
1717/**
1818 * This class allows to get the installed version of the Developer Tools
You can’t perform that action at this time.
0 commit comments