public function autoDiscover()
    {
        $scanner = new CommandScanner();

        $core = $this->resolveNames($scanner->scanCore());
        $app = $this->resolveNames($scanner->scanApp());

        return array_merge($core, $app);
    }
public function autoDiscover()
    {
        $scanner = new CommandScanner();

        $core = $this->resolveNames($scanner->scanCore());
        $app = $this->resolveNames($scanner->scanApp());

        return array_merge($core, $app);
    }
public function autoDiscover ( ) { $ scanner = new CommandScanner ( ) ; $ core = $ this -> resolveNames ( $ scanner -> scanCore ( ) ) ; $ app = $ this -> resolveNames ( $ scanner -> scanApp ( ) ) ; return array_merge ( $ core , $ app ) ; }
Automatically discover shell commands in CakePHP, the application and all plugins.

Commands will be located using filesystem conventions. Commands are
discovered in the following order:

- CakePHP provided commands
- Application commands

Commands defined in the application will ovewrite commands with
the same name provided by CakePHP.

@return string[] An array of command names and their classes.
Automatically discover shell commands in CakePHP the application and all plugins .