File tree Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -252,10 +252,6 @@ services:
252
252
class : PHPStan\Php\PhpVersionFactory
253
253
factory : @PHPStan\Php\PhpVersionFactoryFactory::create
254
254
255
- -
256
- class : PHPStan\PhpDoc\TypeNodeResolverExtensionRegistryProvider
257
- factory : PHPStan\PhpDoc\LazyTypeNodeResolverExtensionRegistryProvider
258
-
259
255
-
260
256
class : PHPStan\Analyser\ConstantResolver
261
257
factory : @PHPStan\Analyser\ConstantResolverFactory::create ()
@@ -281,12 +277,6 @@ services:
281
277
class : PHPStan\Collectors\Registry
282
278
factory : @PHPStan\Collectors\RegistryFactory::create
283
279
284
- -
285
- class : PHPStan\DependencyInjection\Container
286
- factory : PHPStan\DependencyInjection\MemoizingContainer
287
- arguments :
288
- originalContainer : @PHPStan\DependencyInjection\Nette\NetteContainer
289
-
290
280
-
291
281
class : PHPStan\DependencyInjection\Reflection\ClassReflectionExtensionRegistryProvider
292
282
factory : PHPStan\DependencyInjection\Reflection\LazyClassReflectionExtensionRegistryProvider
Original file line number Diff line number Diff line change 4
4
5
5
use function array_key_exists ;
6
6
7
+ #[AutowiredService(as: Container::class)]
7
8
final class MemoizingContainer implements Container
8
9
{
9
10
10
11
/** @var array<string, mixed> */
11
12
private array $ servicesByType = [];
12
13
13
- public function __construct (private Container $ originalContainer )
14
+ public function __construct (
15
+ #[AutowiredParameter(ref: '@PHPStan\DependencyInjection\Nette\NetteContainer ' )]
16
+ private Container $ originalContainer ,
17
+ )
14
18
{
15
19
}
16
20
Original file line number Diff line number Diff line change 2
2
3
3
namespace PHPStan \PhpDoc ;
4
4
5
+ use PHPStan \DependencyInjection \AutowiredService ;
5
6
use PHPStan \DependencyInjection \Container ;
6
7
8
+ #[AutowiredService(as: TypeNodeResolverExtensionRegistryProvider::class)]
7
9
final class LazyTypeNodeResolverExtensionRegistryProvider implements TypeNodeResolverExtensionRegistryProvider
8
10
{
9
11
You can’t perform that action at this time.
0 commit comments