Cake\Upgrade\Shell\Task\RenameCollectionsTask::_process PHP Method

_process() protected method

RenameCollectionsTask::_process()
protected _process ( string $path ) : void
$path string
return void
    protected function _process($path)
    {
        $patterns = [['Replace $this->_Collection with $this->_registry', '#\\$this->_Collection#', '$this->_registry'], ['Replace ComponentCollection arguments', '#ComponentCollection#', 'ComponentRegistry'], ['Rename ComponentCollection', '#ComponentCollection#', "ComponentRegistry"], ['Rename HelperCollection', '#HelperCollection#', "HelperRegistry"], ['Rename TaskCollection', '#TaskCollection#', "TaskRegistry"]];
        $original = $contents = $this->Stage->source($path);
        $contents = $this->_updateContents($contents, $patterns);
        return $this->Stage->change($path, $original, $contents);
    }
RenameCollectionsTask