PHP Класс Cake\Upgrade\Shell\Task\NamespacesTask

Наследование: extends BaseTask, use trait ChangeTrait
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$tasks

Защищенные методы

Метод Описание
_getNamespace ( string $path ) : string _getNamespace
_process ( $path ) : boolean Adds the namespace to a given file.
_shouldProcess ( string $path ) : boolean _shouldProcess

Описание методов

_getNamespace() защищенный Метод

Derives the root namespace from the path. Use the application root as a basis, and strip off anything before Plugin directory - the plugin directory is a root of sorts.
protected _getNamespace ( string $path ) : string
$path string
Результат string

_process() защищенный Метод

Adds the namespace to a given file.
protected _process ( $path ) : boolean
Результат boolean

_shouldProcess() защищенный Метод

If it already has a namespace - bail, otherwise use the default (php files only)
protected _shouldProcess ( string $path ) : boolean
$path string
Результат boolean

Описание свойств

$tasks публичное свойство

public $tasks