src/classes/AppCli.php
public function boot()
    {
        $this->loadDatabaseConnection();
        $this->loadLibraries();

        if (file_exists(system_path("registered-libraries-cli.php")))
        {
            require system_path("registered-libraries-cli.php");
        }

        if (file_exists(system_path("registered-global-middlewares-cli.php")))
        {
            require system_path("registered-global-middlewares-cli.php");
        }

        $application_commands = $this->getApplicationCommands(glob(app_path('Commands/*.php')));
        $skeleton_commands = $this->getSkeletonCoreCommands(glob(__DIR__ . "/Console/Commands/*.php"));
        $modules_commands = $this->getModulesCommands();

        $this->cli_app = new Application(config('app.name'));
        $this->cli_app->addCommands(array_merge($application_commands, $skeleton_commands, $modules_commands));
    }
public function boot()
    {
        $this->loadDatabaseConnection();
        $this->loadLibraries();

        if (file_exists(system_path("registered-libraries-cli.php")))
        {
            require system_path("registered-libraries-cli.php");
        }

        if (file_exists(system_path("registered-global-middlewares-cli.php")))
        {
            require system_path("registered-global-middlewares-cli.php");
        }

        $application_commands = $this->getApplicationCommands(glob(app_path('Commands/*.php')));
        $skeleton_commands = $this->getSkeletonCoreCommands(glob(__DIR__ . "/Console/Commands/*.php"));
        $modules_commands = $this->getModulesCommands();

        $this->cli_app = new Application(config('app.name'));
        $this->cli_app->addCommands(array_merge($application_commands, $skeleton_commands, $modules_commands));
    }
public function boot ( ) { $ this -> loadDatabaseConnection ( ) ; $ this -> loadLibraries ( ) ; if ( file_exists ( system_path ( "registered-libraries-cli.php" ) ) ) { require system_path ( "registered-libraries-cli.php" ) ; } if ( file_exists ( system_path ( "registered-global-middlewares-cli.php" ) ) ) { require system_path ( "registered-global-middlewares-cli.php" ) ; } $ application_commands = $ this -> getApplicationCommands ( glob ( app_path ( 'Commands/*.php' ) ) ) ; $ skeleton_commands = $ this -> getSkeletonCoreCommands ( glob ( __DIR__ . "/Console/Commands/*.php" ) ) ; $ modules_commands = $ this -> getModulesCommands ( ) ; $ this -> cli_app = new Application ( config ( 'app.name' ) ) ; $ this -> cli_app -> addCommands ( array_merge ( $ application_commands , $ skeleton_commands , $ modules_commands ) ) ; }
Boot the cli application.

@return void
Boot the cli application .