mirror of
https://github.com/rectorphp/rector.git
synced 2025-06-02 13:05:07 +02:00
use it in other Rector
This commit is contained in:
parent
46b99f06c5
commit
24a86b45e4
@ -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;
|
||||
}
|
||||
}
|
@ -1,4 +1,2 @@
|
||||
services:
|
||||
Rector\Rector\Contrib\Symfony\FrameworkBundle\ContainerGetToConstructorInjectionRector: ~
|
||||
|
||||
Rector\Tests\Rector\Contrib\Symfony\FrameworkBundle\ContainerGetToConstructorInjectionRector\Source\DummyProvider: ~
|
||||
|
Loading…
x
Reference in New Issue
Block a user