PHP Class Cake\Upgrade\Shell\Task\PrefixedTemplatesTask

Inheritance: extends BaseTask, use trait ChangeTrait
Show file Open project: cakephp/upgrade

Public Properties

Property Type Description
$tasks

Public Methods

Method Description
getOptionParser ( ) : Cake\Console\ConsoleOptionParser Get the option parser for this shell.

Protected Methods

Method Description
_process ( mixed $path = null ) : boolean Process
_shouldProcess ( string $path ) : boolean _shouldProcess

Method Details

_process() protected method

Moves view templates for given routing prefix e.g. Move admin_action.ctp to Admin/action.ctp Extract admin_ prefixed actions from controller and create new controller in Admin subfolder
protected _process ( mixed $path = null ) : boolean
$path mixed
return boolean

_shouldProcess() protected method

Only process .ctp files for current prefix
protected _shouldProcess ( string $path ) : boolean
$path string
return boolean

getOptionParser() public method

Get the option parser for this shell.
public getOptionParser ( ) : Cake\Console\ConsoleOptionParser
return Cake\Console\ConsoleOptionParser

Property Details

$tasks public property

public $tasks