Cake\Console\ShellDispatcher::findShell PHP Method

findShell() public method

All paths in the loaded shell paths are searched, handles alias dereferencing
public findShell ( string $shell ) : Shell
$shell string Optionally the name of a plugin
return Shell A shell instance.
    public function findShell($shell)
    {
        $className = $this->_shellExists($shell);
        if (!$className) {
            $shell = $this->_handleAlias($shell);
            $className = $this->_shellExists($shell);
        }
        if (!$className) {
            throw new MissingShellException(['class' => $shell]);
        }
        return $this->_createShell($className, $shell);
    }