forked from rectorphp/rector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcakephp37.yaml
87 lines (82 loc) · 2.98 KB
/
cakephp37.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# source: https://book.cakephp.org/3.0/en/appendices/3-7-migration-guide.html
services:
Rector\Renaming\Rector\MethodCall\RenameMethodRector:
$oldToNewMethodsByClass:
'Cake\Form\Form':
'errors': 'getErrors'
'Cake\Validation\Validation':
cc: 'creditCard'
'Cake\Filesystem\Folder':
normalizePath: 'correctSlashFor'
'Cake\Http\Client\Response':
body: 'getStringBody'
'Cake\Core\Plugin':
unload: 'clear'
Rector\Core\Rector\Property\PropertyToMethodRector:
$perClassPropertyToMethods:
'Cake\Http\Client\Response':
body:
get: 'getStringBody'
json:
get: 'getJson'
xml:
get: 'getXml'
cookies:
get: 'getCookies'
code:
get: 'getStatusCode'
'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\Core\Rector\MethodCall\MethodCallToAnotherMethodCallWithArgumentsRector:
$oldMethodsToNewMethodsWithArgsByType:
'Cake\Database\Query':
join: ['clause', ['join']]
from: ['clause', ['from']]
Rector\CakePHP\Rector\MethodCall\ModalToGetSetRector:
$methodNamesByTypes:
'Cake\Database\Connection':
logQueries:
set: 'enableQueryLogging'
get: 'isQueryLoggingEnabled'
'Cake\ORM\Association':
className:
set: 'setClassName'
get: 'getClassName'
Rector\CakePHP\Rector\Name\ChangeSnakedFixtureNameToCamelRector: null