PHP Class Cake\Shell\Task\LoadTask

Inheritance: extends Cake\Console\Shell
Show file Open project: cakephp/cakephp

Public Properties

Property Type Description
$bootstrap string Path to the bootstrap file.

Public Methods

Method Description
getOptionParser ( ) : Cake\Console\ConsoleOptionParser GetOptionParser method.
main ( string | null $plugin = null ) : boolean Execution method always used for tasks.

Protected Methods

Method Description
_modifyBootstrap ( string $plugin, boolean $hasBootstrap, boolean $hasRoutes, boolean $hasAutoloader ) : boolean Update the applications bootstrap.php file.

Method Details

_modifyBootstrap() protected method

Update the applications bootstrap.php file.
protected _modifyBootstrap ( string $plugin, boolean $hasBootstrap, boolean $hasRoutes, boolean $hasAutoloader ) : boolean
$plugin string Name of plugin.
$hasBootstrap boolean Whether or not bootstrap should be loaded.
$hasRoutes boolean Whether or not routes should be loaded.
$hasAutoloader boolean Whether or not there is an autoloader configured for the plugin.
return boolean If modify passed.

getOptionParser() public method

GetOptionParser method.
public getOptionParser ( ) : Cake\Console\ConsoleOptionParser
return Cake\Console\ConsoleOptionParser

main() public method

Execution method always used for tasks.
public main ( string | null $plugin = null ) : boolean
$plugin string | null The plugin name.
return boolean

Property Details

$bootstrap public property

Path to the bootstrap file.
public string $bootstrap
return string