public function scanApp()
    {
        $appNamespace = Configure::read('App.namespace');
        $appShells = $this->scanDir(
            App::path('Shell')[0],
            $appNamespace . '\Shell\\',
            '',
            []
        );
        $appCommands = $this->scanDir(
            App::path('Command')[0],
            $appNamespace . '\Command\\',
            '',
            []
        );

        return array_merge($appShells, $appCommands);
    }
public function scanApp()
    {
        $appNamespace = Configure::read('App.namespace');
        $appShells = $this->scanDir(
            App::path('Shell')[0],
            $appNamespace . '\Shell\\',
            '',
            []
        );
        $appCommands = $this->scanDir(
            App::path('Command')[0],
            $appNamespace . '\Command\\',
            '',
            []
        );

        return array_merge($appShells, $appCommands);
    }
public function scanApp ( ) { $ appNamespace = Configure :: read ( 'App.namespace' ) ; $ appShells = $ this -> scanDir ( App :: path ( 'Shell' ) [ 0 ] , $ appNamespace . '\Shell\\' , '' , [ ] ) ; $ appCommands = $ this -> scanDir ( App :: path ( 'Command' ) [ 0 ] , $ appNamespace . '\Command\\' , '' , [ ] ) ; return array_merge ( $ appShells , $ appCommands ) ; }
Scan the application for shells & commands.

@return array A list of command metadata.
Scan the application for shells & commands .