use it in other Rector

This commit is contained in:
Tomas Votruba 2018-04-27 13:57:47 +02:00
parent 46b99f06c5
commit 24a86b45e4
2 changed files with 0 additions and 22 deletions

View File

@ -1,20 +0,0 @@
<?php declare(strict_types=1);
namespace Rector\Tests\Rector\Contrib\Symfony\FrameworkBundle\ContainerGetToConstructorInjectionRector\Source;
use Rector\Contract\Bridge\ServiceTypeForNameProviderInterface;
final class DummyProvider implements ServiceTypeForNameProviderInterface
{
/**
* @var string[]
*/
private $nameToTypeMap = [
'some_service' => 'stdClass',
];
public function provideTypeForName(string $name): ?string
{
return $this->nameToTypeMap[$name] ?? null;
}
}

View File

@ -1,4 +1,2 @@
services:
Rector\Rector\Contrib\Symfony\FrameworkBundle\ContainerGetToConstructorInjectionRector: ~
Rector\Tests\Rector\Contrib\Symfony\FrameworkBundle\ContainerGetToConstructorInjectionRector\Source\DummyProvider: ~