Create constant CORE_PATH and rework project loaders

This commit is contained in:
2021-01-27 12:22:12 +03:00
parent 04e766af45
commit 23cb69919c
5 changed files with 10 additions and 8 deletions

View File

@@ -22,7 +22,7 @@ class Kernel extends ConsoleKernel
public function getCommands()
{
$commands_path = base_path() . '/../../../commands';
$commands_path = CORE_PATH . '/commands';
$files = array_diff(scandir($commands_path), array('.', '..'));
$classes = [];