forked from rectorphp/rector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
symfony30.yaml
153 lines (131 loc) · 8.18 KB
/
symfony30.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# resources:
# - https://github.com/symfony/symfony/blob/3.4/UPGRADE-3.0.md
services:
# php
Rector\Symfony\Rector\HttpKernel\GetRequestRector: ~
Rector\Symfony\Rector\Form\FormTypeGetParentRector: ~
Rector\Symfony\Rector\Form\OptionNameRector: ~
Rector\Symfony\Rector\MethodCall\ReadOnlyOptionToAttributeRector: ~
Rector\Symfony\Rector\MethodCall\CascadeValidationFormBuilderRector: ~
# general
Rector\Renaming\Rector\Constant\RenameClassConstantRector:
# form
'Symfony\Component\Form\FormEvents':
'PRE_BIND': 'PRE_SUBMIT'
'BIND': 'SUBMIT'
'POST_BIND': 'POST_SUBMIT'
'Symfony\Component\Form\Extension\Core\DataTransformer':
'ROUND_HALFEVEN': 'ROUND_HALF_EVEN'
'ROUND_HALFUP': 'ROUND_HALF_UP'
'ROUND_HALFDOWN': 'ROUND_HALF_DOWN'
Rector\Renaming\Rector\MethodCall\RenameMethodRector:
# class loader
'Symfony\Component\ClassLoader\UniversalClassLoader\UniversalClassLoader':
'registerNamespaces': 'addPrefixes'
'registerPrefixes': 'addPrefixes'
'registerNamespace': 'addPrefix'
'registerPrefix': 'addPrefix'
'getNamespaces': 'getPrefixes'
'getNamespaceFallbacks': 'getFallbackDirs'
'getPrefixFallbacks': 'getFallbackDirs'
# form
'Symfony\Component\Form\AbstractType':
'getName': 'getBlockPrefix'
'setDefaultOptions': 'configureOptions'
'Symfony\Component\Form\FormTypeInterface':
'getName': 'getBlockPrefix'
'setDefaultOptions': 'configureOptions'
'Symfony\Component\Form\ResolvedFormTypeInterface':
'getName': 'getBlockPrefix'
'Symfony\Component\Form\AbstractTypeExtension':
'setDefaultOptions': 'configureOptions'
'Symfony\Component\Form\Form':
'bind': 'submit'
'isBound': 'isSubmitted'
# process
'Symfony\Component\Process\Process':
'setStdin': 'setInput'
'getStdin': 'getInput'
# monolog
'Symfony\Bridge\Monolog\Logger':
'emerg': 'emergency'
'crit': 'critical'
'err': 'error'
'warn': 'warning'
# http kernel
'Symfony\Component\HttpKernel\Log\LoggerInterface':
'emerg': 'emergency'
'crit': 'critical'
'err': 'error'
'warn': 'warning'
'Symfony\Component\HttpKernel\Log\NullLogger':
'emerg': 'emergency'
'crit': 'critical'
'err': 'error'
'warn': 'warning'
# property access
Symfony\Component\PropertyAccess\PropertyAccess:
'getPropertyAccessor': 'createPropertyAccessor'
# serialazer
'Symfony\Component\Serializer\Exception\Exception': 'Symfony\Component\Serializer\Exception\ExceptionInterface'
# translator
'Symfony\Component\Translation\Dumper\FileDumper':
'format': 'formatCatalogue'
'Symfony\Component\Translation\Translator':
'getMessages': 'getCatalogue'
# validator
'Symfony\Component\Validator\ConstraintViolationInterface':
'getMessageParameters': 'getParameters'
'getMessagePluralization': 'getPlural'
'Symfony\Component\Validator\ConstraintViolation':
'getMessageParameters': 'getParameters'
'getMessagePluralization': 'getPlural'
Rector\Renaming\Rector\Class_\RenameClassRector:
# class loader
'Symfony\Component\ClassLoader\UniversalClassLoader\UniversalClassLoader': 'Symfony\Component\ClassLoader\ClassLoader' # partial with method rename
# console
'Symfony\Component\Console\Helper\ProgressHelper': 'Symfony\Component\Console\Helper\ProgressBar'
# form
'Symfony\Component\Form\Util\VirtualFormAwareIterator': 'Symfony\Component\Form\Util\InheritDataAwareIterator'
'Symfony\Component\Form\Tests\Extension\Core\Type\TypeTestCase': 'Symfony\Component\Form\Test\TypeTestCase'
'Symfony\Component\Form\Tests\FormIntegrationTestCase': 'Symfony\Component\Form\Test\FormIntegrationTestCase'
'Symfony\Component\Form\Tests\FormPerformanceTestCase': 'Symfony\Component\Form\Test\FormPerformanceTestCase'
'Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceListInterface': 'Symfony\Component\Form\ChoiceList\ChoiceListInterface'
'Symfony\Component\Form\Extension\Core\View\ChoiceView': 'Symfony\Component\Form\ChoiceList\View\ChoiceView'
'Symfony\Component\Form\Extension\Csrf\CsrfProvider\CsrfProviderInterface': 'Symfony\Component\Security\Csrf\CsrfTokenManagerInterface'
'Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceList': 'Symfony\Component\Form\ChoiceList\ArrayChoiceList'
'Symfony\Component\Form\Extension\Core\ChoiceList\LazyChoiceList': 'Symfony\Component\Form\ChoiceList\LazyChoiceList'
'Symfony\Component\Form\Extension\Core\ChoiceList\ObjectChoiceList': 'Symfony\Component\Form\ChoiceList\ArrayChoiceList'
'Symfony\Component\Form\Extension\Core\ChoiceList\SimpleChoiceList': 'Symfony\Component\Form\ChoiceList\ArrayChoiceList'
'Symfony\Component\Form\ChoiceList\ArrayKeyChoiceList': 'Symfony\Component\Form\ChoiceList\ArrayChoiceList'
# http kernel
'Symfony\Component\HttpKernel\Debug\ErrorHandler': 'Symfony\Component\Debug\ErrorHandler'
'Symfony\Component\HttpKernel\Debug\ExceptionHandler': 'Symfony\Component\Debug\ExceptionHandler'
'Symfony\Component\HttpKernel\Exception\FatalErrorException': 'Symfony\Component\Debug\Exception\FatalErrorException'
'Symfony\Component\HttpKernel\Exception\FlattenException': 'Symfony\Component\Debug\Exception\FlattenException'
'Symfony\Component\HttpKernel\Log\LoggerInterface': 'Psr\Log\LoggerInterface' # partial with method rename
# event disptacher
'Symfony\Component\HttpKernel\DependencyInjection\RegisterListenersPass': 'Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass'
'Symfony\Component\HttpKernel\Log\NullLogger': 'Psr\Log\LoggerInterface' # partial with methor rename
# monolog
'Symfony\Bridge\Monolog\Logger': 'Psr\Log\LoggerInterface' # partial with method rename
# security
'Symfony\Component\Security\Core\Authorization\Voter\AbstractVoter': 'Symfony\Component\Security\Core\Authorization\Voter\Voter'
# translator
'Symfony\Component\Translation\Translator': 'Symfony\Component\Translation\TranslatorBagInterface' # partial with class rename
# twig
'Symfony\Bundle\TwigBundle\TwigDefaultEscapingStrategy': 'Twig_FileExtensionEscapingStrategy'
# validator
'Symfony\Component\Validator\Constraints\Collection\Optional': 'Symfony\Component\Validator\Constraints\Optional'
'Symfony\Component\Validator\Constraints\Collection\Required': 'Symfony\Component\Validator\Constraints\Required'
'Symfony\Component\Validator\MetadataInterface': 'Symfony\Component\Validator\Mapping\MetadataInterface'
'Symfony\Component\Validator\PropertyMetadataInterface': 'Symfony\Component\Validator\Mapping\PropertyMetadataInterface'
'Symfony\Component\Validator\PropertyMetadataContainerInterface': 'Symfony\Component\Validator\Mapping\ClassMetadataInterface'
'Symfony\Component\Validator\ClassBasedInterface': 'Symfony\Component\Validator\Mapping\ClassMetadataInterface'
'Symfony\Component\Validator\Mapping\ElementMetadata': 'Symfony\Component\Validator\Mapping\GenericMetadata'
'Symfony\Component\Validator\ExecutionContextInterface': 'Symfony\Component\Validator\Context\ExecutionContextInterface'
'Symfony\Component\Validator\Mapping\ClassMetadataFactory': 'Symfony\Component\Validator\Mapping\Factory\LazyLoadingMetadataFactory'
'Symfony\Component\Validator\Mapping\MetadataFactoryInterface': 'Symfony\Component\Validator\Mapping\Factory\MetadataFactoryInterface'
# swift mailer
'Symfony\Bridge\Swiftmailer\DataCollector\MessageDataCollector': 'Symfony\Bundle\SwiftmailerBundle\DataCollector\MessageDataCollector'
Rector\Symfony\Rector\MethodCall\FormTypeInstanceToClassConstRector: ~