mirror of
https://github.com/rectorphp/rector.git
synced 2024-07-30 21:30:23 +00:00
config: use new Rector namespaces
This commit is contained in:
parent
77f838c358
commit
e74e11beb4
@ -1,7 +1,7 @@
|
||||
# source: https://book.cakephp.org/3.next/en/appendices/3-6-migration-guide.html
|
||||
|
||||
services:
|
||||
Rector\Rector\Dynamic\MethodNameReplacerRector:
|
||||
Rector\Rector\MethodCall\MethodNameReplacerRector:
|
||||
$perClassOldToNewMethods:
|
||||
'Cake\ORM\Table':
|
||||
'association': 'getAssociation'
|
||||
|
@ -1,5 +1,5 @@
|
||||
services:
|
||||
Rector\Rector\Dynamic\ParentTypehintedArgumentRector:
|
||||
Rector\Rector\Typehint\ParentTypehintedArgumentRector:
|
||||
$typehintForArgumentByMethodAndClass:
|
||||
'Doctrine\ORM\Mapping\ClassMetadataFactory':
|
||||
'setEntityManager':
|
||||
@ -8,7 +8,7 @@ services:
|
||||
'dumpIdentityMap':
|
||||
'em': 'Doctrine\ORM\EntityManagerInterface'
|
||||
|
||||
Rector\Rector\Dynamic\ArgumentRemoverRector:
|
||||
Rector\Rector\Argument\ArgumentRemoverRector:
|
||||
$argumentChangesByMethodAndType:
|
||||
-
|
||||
class: 'Doctrine\ORM\Persisters\Entity\AbstractEntityInheritancePersister'
|
||||
|
@ -15,7 +15,7 @@ services:
|
||||
'PhpParser\Node\Stmt\Property':
|
||||
'type': 'flags'
|
||||
|
||||
Rector\Rector\Dynamic\ClassConstantReplacerRector:
|
||||
Rector\Rector\Constant\ClassConstantReplacerRector:
|
||||
$oldToNewConstantsByClass:
|
||||
'PhpParser\Node\Stmt\Class_':
|
||||
'VISIBILITY_MODIFER_MASK': 'VISIBILITY_MODIFIER_MASK'
|
||||
|
@ -3,7 +3,7 @@ services:
|
||||
Rector\PHPUnit\Rector\GetMockRector: ~
|
||||
|
||||
# ref. https://github.com/sebastianbergmann/phpunit/compare/5.7.9...6.0.0
|
||||
Rector\Rector\Dynamic\PseudoNamespaceToNamespaceRector:
|
||||
Rector\Rector\Namespace_\PseudoNamespaceToNamespaceRector:
|
||||
$configuration:
|
||||
- 'PHPUnit_'
|
||||
# exclude this class, since it has no namespaced replacement
|
||||
@ -12,7 +12,7 @@ services:
|
||||
# handles 2nd and 3rd argument of setExpectedException
|
||||
Rector\PHPUnit\Rector\DelegateExceptionArgumentsRector: ~
|
||||
|
||||
Rector\Rector\Dynamic\MethodNameReplacerRector:
|
||||
Rector\Rector\MethodCall\MethodNameReplacerRector:
|
||||
$perClassOldToNewMethods:
|
||||
'PHPUnit\Framework\TestClass':
|
||||
'setExpectedException': 'expectedException'
|
||||
|
@ -1,5 +1,5 @@
|
||||
services:
|
||||
Rector\Rector\Dynamic\AnnotationReplacerRector:
|
||||
Rector\Rector\Annotation\AnnotationReplacerRector:
|
||||
$classToAnnotationMap:
|
||||
PHPUnit\Framework\TestCase:
|
||||
scenario: test
|
||||
|
@ -3,7 +3,7 @@
|
||||
services:
|
||||
Rector\Sylius\Rector\Review\ReplaceCreateMethodWithoutReviewerRector: ~
|
||||
|
||||
Rector\Rector\Dynamic\MethodNameReplacerRector:
|
||||
Rector\Rector\MethodCall\MethodNameReplacerRector:
|
||||
$perClassOldToNewMethods:
|
||||
'Sylius\Component\Core\Repository\OrderRepositoryInterface':
|
||||
'count': 'countPlacedOrders'
|
||||
@ -18,13 +18,13 @@ services:
|
||||
'Sylius\Component\Taxonomy\Model\TaxonInterface':
|
||||
'getParents ': 'getAncestors'
|
||||
|
||||
Rector\Rector\Dynamic\ParentTypehintedArgumentRector:
|
||||
Rector\Rector\Typehint\ParentTypehintedArgumentRector:
|
||||
$typehintForArgumentByMethodAndClass:
|
||||
'Sylius\Bundle\CoreBundle\Context\SessionAndChannelBasedCartContext':
|
||||
'__construct':
|
||||
'$cartStorage': 'Sylius\Component\Core\Storage\CartStorageInterface'
|
||||
|
||||
Rector\Rector\Dynamic\ArgumentAdderRector:
|
||||
Rector\Rector\Argument\ArgumentAdderRector:
|
||||
$argumentChangesByMethodAndType:
|
||||
-
|
||||
class: 'Sylius\Component\Mailer\Sender\SenderInterface'
|
||||
@ -37,7 +37,7 @@ services:
|
||||
position: 2
|
||||
default_value: false
|
||||
|
||||
Rector\Rector\Dynamic\ReturnTypehintRector:
|
||||
Rector\Rector\Typehint\ReturnTypehintRector:
|
||||
$returnTypehintByMethod:
|
||||
'Sylius\Component\Order\Model\OrderInterface':
|
||||
'getAdjustmentsRecursively':
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
services:
|
||||
# @todo, use this and return typehint
|
||||
Rector\Rector\Dynamic\ReturnTypehintRector:
|
||||
Rector\Rector\Typehint\ReturnTypehintRector:
|
||||
$typehintForMethodByClass:
|
||||
# class
|
||||
'Sylius\Bundle\AdminApiBundle\Model\ClientManager':
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
services:
|
||||
# @todo, use this and return typehint
|
||||
Rector\Rector\Dynamic\ReturnTypehintRector:
|
||||
Rector\Rector\Typehint\ReturnTypehintRector:
|
||||
$typehintForMethodByClass:
|
||||
# class
|
||||
'Sylius\Bundle\CoreBundle\Templating\Helper\VariantResolverHelper':
|
||||
|
@ -11,14 +11,12 @@ services:
|
||||
'security > firewalls > default > remember_me > key': 'secret'
|
||||
|
||||
# php
|
||||
|
||||
Rector\Symfony\Rector\HttpKernel\GetRequestRector: ~
|
||||
Rector\Symfony\Rector\Form\FormTypeGetParentRector: ~
|
||||
Rector\Symfony\Rector\Form\OptionNameRector: ~
|
||||
|
||||
# dynamic
|
||||
|
||||
Rector\Rector\Dynamic\ClassConstantReplacerRector:
|
||||
Rector\Rector\Constant\ClassConstantReplacerRector:
|
||||
$oldToNewConstantsByClass:
|
||||
# form
|
||||
'Symfony\Component\Form\FormEvents':
|
||||
@ -30,7 +28,7 @@ services:
|
||||
'ROUND_HALFUP': 'ROUND_HALF_UP'
|
||||
'ROUND_HALFDOWN': 'ROUND_HALF_DOWN'
|
||||
|
||||
Rector\Rector\Dynamic\MethodNameReplacerRector:
|
||||
Rector\Rector\MethodCall\MethodNameReplacerRector:
|
||||
$perClassOldToNewMethods:
|
||||
# class loader
|
||||
'Symfony\Component\ClassLoader\UniversalClassLoader\UniversalClassLoader':
|
||||
|
@ -6,7 +6,7 @@ services:
|
||||
' !!php/object': ' !php/object'
|
||||
|
||||
# replace args
|
||||
Rector\Rector\Dynamic\ArgumentDefaultValueReplacerRector:
|
||||
Rector\Rector\Argument\ArgumentDefaultValueReplacerRector:
|
||||
$argumentChangesByMethodAndType:
|
||||
# covers https://github.com/symfony/symfony/blob/3.4/UPGRADE-3.1.md#yaml
|
||||
-
|
||||
|
@ -5,7 +5,7 @@ services:
|
||||
Rector\Symfony\Rector\Yaml\SpaceBetweenKeyAndValueYamlRector: ~
|
||||
|
||||
# dependency-injection
|
||||
Rector\Rector\Dynamic\ArgumentAdderRector:
|
||||
Rector\Rector\Argument\ArgumentAdderRector:
|
||||
$argumentChangesByMethodAndType:
|
||||
-
|
||||
class: Symfony\Component\DependencyInjection\ContainerBuilder
|
||||
|
@ -1,6 +1,6 @@
|
||||
services:
|
||||
# dependency-injection
|
||||
Rector\Rector\Dynamic\ArgumentAdderRector:
|
||||
Rector\Rector\Argument\ArgumentAdderRector:
|
||||
$argumentChangesByMethodAndType:
|
||||
# added default value
|
||||
-
|
||||
@ -41,7 +41,7 @@ services:
|
||||
'Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\ConfigCachePass': 'Symfony\Component\Config\DependencyInjection\ConfigCachePass'
|
||||
'Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\PropertyInfoPass': 'Symfony\Component\PropertyInfo\DependencyInjection\PropertyInfoPass'
|
||||
|
||||
Rector\Rector\Dynamic\MethodNameReplacerRector:
|
||||
Rector\Rector\MethodCall\MethodNameReplacerRector:
|
||||
$perClassOldToNewMethods:
|
||||
# dependency-injection
|
||||
'Symfony\Component\DependencyInjection\Container':
|
||||
|
@ -9,7 +9,7 @@ services:
|
||||
' !php/const:': ' !php/const '
|
||||
' !str': ' !!str'
|
||||
|
||||
Rector\Rector\Dynamic\ArgumentRemoverRector:
|
||||
Rector\Rector\Argument\ArgumentRemoverRector:
|
||||
$argumentChangesByMethodAndType:
|
||||
-
|
||||
class: 'Symfony\Component\Yaml\Yaml'
|
||||
|
@ -154,6 +154,6 @@ services:
|
||||
'Twig_Extensions_TokenParser_Trans': 'Twig\Extensions\TokenParser\TransTokenParser'
|
||||
'Twig_Extensions_Node_Trans': 'Twig\Extensions\Node\TransNode'
|
||||
|
||||
Rector\Rector\Dynamic\PseudoNamespaceToNamespaceRector:
|
||||
Rector\Rector\Namespace_\PseudoNamespaceToNamespaceRector:
|
||||
$configuration:
|
||||
- 'Twig_'
|
||||
|
Loading…
Reference in New Issue
Block a user