Class PluginTask

The Plugin Task handles creating an empty plugin, ready to be used

AppShell
Extended by 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

Properties summary

  • $bootstrap public
    string
    Path to the bootstrap file. Changed in tests.
  • $path public
    array
    path to plugins directory

Method Summary

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

boolean

execute()source public

execute( )

Execution method always used for tasks

findPath()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

initialize()source public

initialize( )

initialize

Properties detail

$bootstrapsource

public string

Path to the bootstrap file. Changed in tests.

null

$pathsource

public array

path to plugins directory

null

© 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