Skip to content

Commit 1d348b3

Browse files
committed
more autowiring
1 parent b0b2485 commit 1d348b3

8 files changed

+14
-21
lines changed

conf/config.neon

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -625,40 +625,22 @@ services:
625625
arguments:
626626
usePathConstantsAsConstantString: %usePathConstantsAsConstantString%
627627

628-
-
629-
class: PHPStan\Reflection\Annotations\AnnotationsMethodsClassReflectionExtension
630-
631-
-
632-
class: PHPStan\Reflection\Annotations\AnnotationsPropertiesClassReflectionExtension
633-
634-
-
635-
class: PHPStan\Reflection\BetterReflection\SourceLocator\CachingVisitor
636-
637628
-
638629
class: PHPStan\Reflection\BetterReflection\SourceLocator\FileNodesFetcher
639630
arguments:
640631
parser: @defaultAnalysisParser
641632

642-
-
643-
class: PHPStan\Reflection\BetterReflection\SourceLocator\ComposerJsonAndInstalledJsonSourceLocatorMaker
644-
645633
-
646634
class: PHPStan\Reflection\BetterReflection\SourceLocator\OptimizedDirectorySourceLocatorFactory
647635
arguments:
648636
fileFinder: @fileFinderScan
649637

650-
-
651-
class: PHPStan\Reflection\BetterReflection\SourceLocator\OptimizedDirectorySourceLocatorRepository
652-
653638
-
654639
implement: PHPStan\Reflection\BetterReflection\SourceLocator\OptimizedPsrAutoloaderLocatorFactory
655640

656641
-
657642
implement: PHPStan\Reflection\BetterReflection\SourceLocator\OptimizedSingleFileSourceLocatorFactory
658643

659-
-
660-
class: PHPStan\Reflection\BetterReflection\SourceLocator\OptimizedSingleFileSourceLocatorRepository
661-
662644
-
663645
class: PHPStan\Reflection\BetterReflection\Type\AdapterReflectionEnumCaseDynamicReturnTypeExtension
664646
arguments:
@@ -678,9 +660,6 @@ services:
678660
arguments:
679661
additionalConstructors: %additionalConstructors%
680662

681-
-
682-
class: PHPStan\Reflection\RequireExtension\RequireExtendsMethodsClassReflectionExtension
683-
684663
-
685664
class: PHPStan\Reflection\RequireExtension\RequireExtendsPropertiesClassReflectionExtension
686665

src/Reflection/Annotations/AnnotationsMethodsClassReflectionExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace PHPStan\Reflection\Annotations;
44

5+
use PHPStan\DependencyInjection\AutowiredService;
56
use PHPStan\PhpDoc\Tag\TemplateTag;
67
use PHPStan\Reflection\ClassReflection;
78
use PHPStan\Reflection\ExtendedMethodReflection;
@@ -15,6 +16,7 @@
1516
use function array_map;
1617
use function count;
1718

19+
#[AutowiredService]
1820
final class AnnotationsMethodsClassReflectionExtension implements MethodsClassReflectionExtension
1921
{
2022

src/Reflection/Annotations/AnnotationsPropertiesClassReflectionExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22

33
namespace PHPStan\Reflection\Annotations;
44

5+
use PHPStan\DependencyInjection\AutowiredService;
56
use PHPStan\Reflection\ClassReflection;
67
use PHPStan\Reflection\ExtendedPropertyReflection;
78
use PHPStan\Reflection\PropertiesClassReflectionExtension;
89
use PHPStan\Type\Generic\TemplateTypeHelper;
910
use PHPStan\Type\Generic\TemplateTypeVariance;
1011
use PHPStan\Type\NeverType;
1112

13+
#[AutowiredService]
1214
final class AnnotationsPropertiesClassReflectionExtension implements PropertiesClassReflectionExtension
1315
{
1416

src/Reflection/BetterReflection/SourceLocator/CachingVisitor.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99
use PHPStan\BetterReflection\Reflection\Exception\InvalidConstantNode;
1010
use PHPStan\BetterReflection\SourceLocator\Located\LocatedSource;
1111
use PHPStan\BetterReflection\Util\ConstantNodeChecker;
12+
use PHPStan\DependencyInjection\AutowiredService;
1213
use PHPStan\Reflection\ConstantNameHelper;
1314
use function strtolower;
1415

16+
#[AutowiredService]
1517
final class CachingVisitor extends NodeVisitorAbstract
1618
{
1719

src/Reflection/BetterReflection/SourceLocator/ComposerJsonAndInstalledJsonSourceLocatorMaker.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use PHPStan\BetterReflection\SourceLocator\Type\Composer\Psr\Psr0Mapping;
99
use PHPStan\BetterReflection\SourceLocator\Type\Composer\Psr\Psr4Mapping;
1010
use PHPStan\BetterReflection\SourceLocator\Type\SourceLocator;
11+
use PHPStan\DependencyInjection\AutowiredService;
1112
use PHPStan\File\CouldNotReadFileException;
1213
use PHPStan\File\FileReader;
1314
use PHPStan\Internal\ComposerHelper;
@@ -25,6 +26,7 @@
2526
use function str_contains;
2627
use const GLOB_ONLYDIR;
2728

29+
#[AutowiredService]
2830
final class ComposerJsonAndInstalledJsonSourceLocatorMaker
2931
{
3032

src/Reflection/BetterReflection/SourceLocator/OptimizedDirectorySourceLocatorRepository.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
namespace PHPStan\Reflection\BetterReflection\SourceLocator;
44

5+
use PHPStan\DependencyInjection\AutowiredService;
56
use function array_key_exists;
67

8+
#[AutowiredService]
79
final class OptimizedDirectorySourceLocatorRepository
810
{
911

src/Reflection/BetterReflection/SourceLocator/OptimizedSingleFileSourceLocatorRepository.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
namespace PHPStan\Reflection\BetterReflection\SourceLocator;
44

5+
use PHPStan\DependencyInjection\AutowiredService;
56
use function array_key_exists;
67

8+
#[AutowiredService]
79
final class OptimizedSingleFileSourceLocatorRepository
810
{
911

src/Reflection/RequireExtension/RequireExtendsMethodsClassReflectionExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
namespace PHPStan\Reflection\RequireExtension;
44

55
use PHPStan\Analyser\OutOfClassScope;
6+
use PHPStan\DependencyInjection\AutowiredService;
67
use PHPStan\Reflection\ClassReflection;
78
use PHPStan\Reflection\ExtendedMethodReflection;
89
use PHPStan\Reflection\MethodsClassReflectionExtension;
910
use PHPStan\ShouldNotHappenException;
1011

12+
#[AutowiredService]
1113
final class RequireExtendsMethodsClassReflectionExtension implements MethodsClassReflectionExtension
1214
{
1315

0 commit comments

Comments
 (0)