mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 22:08:00 +01:00
add CakePHP 3.7 set [closes #687]
This commit is contained in:
parent
a24351e14f
commit
66b8c86d72
66
config/level/cakephp/cakephp37.yml
Normal file
66
config/level/cakephp/cakephp37.yml
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
# source: https://book.cakephp.org/3.next/en/appendices/3-7-migration-guide.html
|
||||||
|
|
||||||
|
services:
|
||||||
|
Rector\Rector\MethodCall\MethodNameReplacerRector:
|
||||||
|
Cake\Form\Form:
|
||||||
|
'errors': 'getErrors'
|
||||||
|
Cake\Validation\Validation:
|
||||||
|
cc: 'creditCard'
|
||||||
|
Cake\Filesystem\Folder:
|
||||||
|
normalizePath: 'correctSlashFor'
|
||||||
|
|
||||||
|
Rector\Rector\Property\PropertyToMethodRector:
|
||||||
|
Cake\View\View:
|
||||||
|
request:
|
||||||
|
get: 'getRequest'
|
||||||
|
set: 'setRequest'
|
||||||
|
response:
|
||||||
|
get: 'getResponse'
|
||||||
|
set: 'setResponse'
|
||||||
|
templatePath:
|
||||||
|
get: 'getTemplatePath'
|
||||||
|
set: 'setTemplatePath'
|
||||||
|
template:
|
||||||
|
get: 'getTemplate'
|
||||||
|
set: 'setTemplate'
|
||||||
|
layout:
|
||||||
|
get: 'getLayout'
|
||||||
|
set: 'setLayout'
|
||||||
|
layoutPath:
|
||||||
|
get: 'getLayoutPath'
|
||||||
|
set: 'setLayoutPath'
|
||||||
|
autoLayout:
|
||||||
|
get: 'enableAutoLayout'
|
||||||
|
set: 'isAutoLayoutEnabled'
|
||||||
|
theme:
|
||||||
|
get: 'getTheme'
|
||||||
|
set: 'setTheme'
|
||||||
|
subDir:
|
||||||
|
get: 'getSubDir'
|
||||||
|
set: 'setSubDir'
|
||||||
|
plugin:
|
||||||
|
get: 'getPlugin'
|
||||||
|
set: 'setPlugin'
|
||||||
|
name:
|
||||||
|
get: 'getName'
|
||||||
|
set: 'setName'
|
||||||
|
elementCache:
|
||||||
|
get: 'getElementCache'
|
||||||
|
set: 'setElementCache'
|
||||||
|
helpers:
|
||||||
|
get: 'helpers'
|
||||||
|
|
||||||
|
Rector\Rector\MethodCall\MethodCallToAnotherMethodCallWithArgumentsRector:
|
||||||
|
Cake\Database\Query:
|
||||||
|
join: ['clause', ['join']]
|
||||||
|
from: ['clause', ['from']]
|
||||||
|
|
||||||
|
Rector\CakePHP\Rector\MethodCall\ModalToGetSetRector:
|
||||||
|
Cake\Database\Connection:
|
||||||
|
logQueries:
|
||||||
|
set: 'enableQueryLogging'
|
||||||
|
get: 'isQueryLoggingEnabled'
|
||||||
|
Cake\ORM\Association:
|
||||||
|
className:
|
||||||
|
set: 'setClassName'
|
||||||
|
get: 'getClassName'
|
Loading…
x
Reference in New Issue
Block a user