Class PluginTask
The Plugin Task handles creating an empty plugin, ready to be used
- AppShell
- 
			 PluginTask PluginTask
		
		
		
		Package: Cake\Console\Command\Task
Copyright: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
License: MIT License
Location: Cake/Console/Command/Task/PluginTask.php
	
	Copyright: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
License: MIT License
Location: Cake/Console/Command/Task/PluginTask.php
Properties summary
- 
			$bootstrappublicstringPath to the bootstrap file. Changed in tests.
- 
			$pathpublicarraypath to plugins directory
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() publicget the option parser for the plugin task
- 
			initialize() publicinitialize
Method Detail
_interactive() protected ¶
_interactive( string $plugin = null )
Interactive interface
Parameters
- string $plugin optional null
_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
