config: drop aliases where not needed

This commit is contained in:
TomasVotruba 2018-03-06 06:52:28 +01:00
parent 17eae3d0c9
commit 5814874bcb
7 changed files with 0 additions and 25 deletions

View File

@ -48,10 +48,6 @@ This operation could be automated on some level, but Kernel and Container API va
```yaml
services:
StaticProvider: ~
# this allows autowiring via interface
Rector\Contract\Bridge\ServiceTypeForNameProviderInterface:
alias: StaticProvider
```
That's it!

View File

@ -28,8 +28,6 @@ services:
Symfony\Component\Console\Style\SymfonyStyle: ~
Symfony\Component\Console\Input\ArgvInput: ~
Symfony\Component\Console\Input\InputInterface:
alias: Symfony\Component\Console\Input\ArgvInput
Symfony\Component\Console\Output\ConsoleOutput: ~
Symfony\Component\Console\Output\OutputInterface:

View File

@ -4,7 +4,3 @@ imports:
services:
# required for EntityForDoctrineRepositoryProvider, added by user
Rector\Tests\Rector\Architecture\DoctrineRepositoryAsService\Source\EntityForDoctrineRepositoryProvider: ~
# @todo: add autoaliasing compilerpass or extension for single cases like this; no need to bother user
Rector\Contract\Bridge\EntityForDoctrineRepositoryProviderInterface:
alias: Rector\Tests\Rector\Architecture\DoctrineRepositoryAsService\Source\EntityForDoctrineRepositoryProvider

View File

@ -3,6 +3,3 @@ services:
# service name to type provider
Rector\Tests\Rector\Contrib\Nette\Environment\GetServiceToConstructorInjectionRector\Source\DummyProvider: ~
# require for interface autowiring
Rector\Contract\Bridge\ServiceTypeForNameProviderInterface:
alias: 'Rector\Tests\Rector\Contrib\Nette\Environment\GetServiceToConstructorInjectionRector\Source\DummyProvider'

View File

@ -2,7 +2,3 @@ services:
Rector\Rector\Contrib\Symfony\Console\CommandToConstructorInjectionRector: ~
Rector\Tests\Rector\Contrib\Symfony\Console\CommandToConstructorInjectionRector\Source\DummyProvider: ~
# require for interface autowiring
Rector\Contract\Bridge\ServiceTypeForNameProviderInterface:
alias: Rector\Tests\Rector\Contrib\Symfony\Console\CommandToConstructorInjectionRector\Source\DummyProvider

View File

@ -2,7 +2,3 @@ services:
Rector\Rector\Contrib\Symfony\FrameworkBundle\ContainerGetToConstructorInjectionRector: ~
Rector\Tests\Rector\Contrib\Symfony\FrameworkBundle\ContainerGetToConstructorInjectionRector\Source\DummyProvider: ~
# require for interface autowiring
Rector\Contract\Bridge\ServiceTypeForNameProviderInterface:
alias: Rector\Tests\Rector\Contrib\Symfony\FrameworkBundle\ContainerGetToConstructorInjectionRector\Source\DummyProvider

View File

@ -2,7 +2,3 @@ services:
Rector\Rector\Contrib\Symfony\FrameworkBundle\GetToConstructorInjectionRector: ~
Rector\Tests\Rector\Contrib\Symfony\FrameworkBundle\GetToConstructorInjectionRector\Source\DummyProvider: ~
# require for interface autowiring
'Rector\Contract\Bridge\ServiceTypeForNameProviderInterface':
alias: 'Rector\Tests\Rector\Contrib\Symfony\FrameworkBundle\GetToConstructorInjectionRector\Source\DummyProvider'