Cake\Shell\Task\LoadTask::main PHP Method

main() public method

Execution method always used for tasks.
public main ( string | null $plugin = null ) : boolean
$plugin string | null The plugin name.
return boolean
    public function main($plugin = null)
    {
        $this->bootstrap = ROOT . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'bootstrap.php';
        if (empty($plugin)) {
            $this->err('You must provide a plugin name in CamelCase format.');
            $this->err('To load an "Example" plugin, run `cake plugin load Example`.');
            return false;
        }
        return $this->_modifyBootstrap($plugin, $this->params['bootstrap'], $this->params['routes'], $this->params['autoload']);
    }