public function scanCore()
    {
        $coreShells = $this->scanDir(
            dirname(__DIR__) . DIRECTORY_SEPARATOR . 'Shell' . DIRECTORY_SEPARATOR,
            'Cake\Shell\\',
            '',
            ['command_list']
        );
        $coreCommands = $this->scanDir(
            dirname(__DIR__) . DIRECTORY_SEPARATOR . 'Command' . DIRECTORY_SEPARATOR,
            'Cake\Command\\',
            '',
            ['command_list']
        );

        return array_merge($coreShells, $coreCommands);
    }
public function scanCore()
    {
        $coreShells = $this->scanDir(
            dirname(__DIR__) . DIRECTORY_SEPARATOR . 'Shell' . DIRECTORY_SEPARATOR,
            'Cake\Shell\\',
            '',
            ['command_list']
        );
        $coreCommands = $this->scanDir(
            dirname(__DIR__) . DIRECTORY_SEPARATOR . 'Command' . DIRECTORY_SEPARATOR,
            'Cake\Command\\',
            '',
            ['command_list']
        );

        return array_merge($coreShells, $coreCommands);
    }
public function scanCore ( ) { $ coreShells = $ this -> scanDir ( dirname ( __DIR__ ) . DIRECTORY_SEPARATOR . 'Shell' . DIRECTORY_SEPARATOR , 'Cake\Shell\\' , '' , [ 'command_list' ] ) ; $ coreCommands = $ this -> scanDir ( dirname ( __DIR__ ) . DIRECTORY_SEPARATOR . 'Command' . DIRECTORY_SEPARATOR , 'Cake\Command\\' , '' , [ 'command_list' ] ) ; return array_merge ( $ coreShells , $ coreCommands ) ; }
Scan CakePHP internals for shells & commands.

@return array A list of command metadata.
Scan CakePHP internals for shells & commands .