PHP Trait Cake\Upgrade\Shell\Task\ChangeTrait

Afficher le fichier Open project: cakephp/upgrade

Méthodes publiques

Méthode Description
main ( ) : void Make tasks callable
process ( string $path ) : void process

Méthodes protégées

Méthode Description
_process ( string $path ) : void Default noop
_shouldProcess ( string $path ) : boolean _shouldProcess
_updateContents ( string $contents, array $patterns ) : string Update the contents of a file using an array of find and replace patterns

Method Details

_process() protected méthode

Default noop
protected _process ( string $path ) : void
$path string
Résultat void

_shouldProcess() protected méthode

Default to PHP files only
protected _shouldProcess ( string $path ) : boolean
$path string
Résultat boolean

_updateContents() protected méthode

Update the contents of a file using an array of find and replace patterns
protected _updateContents ( string $contents, array $patterns ) : string
$contents string The file contents to update
$patterns array The replacement patterns to run.
Résultat string

main() public méthode

Make tasks callable
public main ( ) : void
Résultat void

process() public méthode

process
public process ( string $path ) : void
$path string
Résultat void