Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions phalcon
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@
* the LICENSE file that was distributed with this source code.
*/

// Autoload need to happen before the use of use.
try {
require dirname(__FILE__) . '/bootstrap/autoload.php';
} catch (\Throwable $e) {
fwrite(STDERR, $e->getMessage() . PHP_EOL);
exit(1);
}

use Phalcon\DevTools\Commands\Builtin\AllModels;
use Phalcon\DevTools\Commands\Builtin\Console;
use Phalcon\DevTools\Commands\Builtin\Controller;
Expand All @@ -30,8 +38,6 @@ use Phalcon\DevTools\Version;
use Phalcon\Events\Manager as EventsManager;

try {
require dirname(__FILE__) . '/bootstrap/autoload.php';

$vendor = sprintf('Phalcon DevTools (%s)', (new Version())->get());
print PHP_EOL . Color::colorize($vendor, Color::FG_GREEN, Color::AT_BOLD) . PHP_EOL . PHP_EOL;

Expand Down
2 changes: 1 addition & 1 deletion src/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

namespace Phalcon\DevTools;

use Phalcon\support\Version as PhVersion;
use Phalcon\Support\Version as PhVersion;

/**
* This class allows to get the installed version of the Developer Tools
Expand Down
Loading