On this page
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
publicarray
Method Summary
-
_interactive() protectedInteractive interface
-
_modifyBootstrap() protectedUpdate the app's bootstrap.php file.
-
bake() publicBake the plugin, create directories and files
-
execute() publicExecution method always used for tasks
-
findPath() publicfind and change $this->path to the user selection
-
getOptionParser() publicGets the option parser instance and configures it.
-
initialize() publicinitialize
Method Detail
_interactive()source protected
_interactive( string $plugin null )
Interactive interface
Parameters
-
string
$plugin
optional null - The plugin name.
_modifyBootstrap()source protected
_modifyBootstrap( string $plugin )
Update the app's bootstrap.php file.
Parameters
-
string
$plugin
- Name of plugin
bake()source public
bake( string $plugin )
Bake the plugin, create directories and files
Parameters
-
string
$plugin
- Name of the plugin in CamelCased format
Returns
booleanfindPath()source public
findPath( array $pathOptions )
find and change $this->path to the user selection
Parameters
-
array
$pathOptions
- The list of paths to look in.
getOptionParser()source public
getOptionParser( )
Gets the option parser instance and configures it.
Returns
ConsoleOptionParser
Properties detail
© 2005–2017 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/2.10/class-PluginTask.html