Class PluginTask
The Plugin Task handles creating an empty plugin, ready to be used
- AppShell
- PluginTask
Package: Cake\Console\Command\Task
Copyright: Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
License: MIT License
Location: Cake/Console/Command/Task/PluginTask.php
Copyright: Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
License: MIT License
Location: Cake/Console/Command/Task/PluginTask.php
Properties summary
-
$bootstrap
publicstring
Path to the bootstrap file. Changed in tests. -
$path
publicarray
path to plugins directory
Method Summary
-
_interactive() protected
Interactive interface -
_modifyBootstrap() protected
Update the app's bootstrap.php file. -
bake() public
Bake the plugin, create directories and files -
execute() public
Execution method always used for tasks -
findPath() public
find and change $this->path to the user selection -
getOptionParser() public
Gets the option parser instance and configures it. -
initialize() public
initialize
Method Detail
_interactive() protected ¶
_interactive( string $plugin = null )
Interactive interface
Parameters
- string $plugin optional null
- The plugin name.
_modifyBootstrap() protected ¶
_modifyBootstrap( string $plugin )
Update the app's bootstrap.php file.
Parameters
- string $plugin
- Name of plugin
bake() public ¶
bake( string $plugin )
Bake the plugin, create directories and files
Parameters
- string $plugin
- Name of the plugin in CamelCased format
Returns
boolean
findPath() public ¶
findPath( array $pathOptions )
find and change $this->path to the user selection
Parameters
- array $pathOptions
- The list of paths to look in.