Skip to content

Commit b64389f

Browse files
committed
more autowire
1 parent a0b26a0 commit b64389f

10 files changed

+18
-33
lines changed

conf/config.neon

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,6 @@ services:
230230
-
231231
class: PhpParser\BuilderFactory
232232

233-
-
234-
class: PHPStan\Parser\LexerFactory
235-
236233
-
237234
class: PhpParser\NodeVisitor\NameResolver
238235
arguments:
@@ -384,25 +381,10 @@ services:
384381
-
385382
class: PHPStan\PhpDocParser\Printer\Printer
386383

387-
-
388-
class: PHPStan\PhpDoc\PhpDocStringResolver
389-
390-
-
391-
class: PHPStan\PhpDoc\ConstExprNodeResolver
392-
393-
-
394-
class: PHPStan\PhpDoc\TypeNodeResolver
395-
396384
-
397385
class: PHPStan\PhpDoc\TypeNodeResolverExtensionRegistryProvider
398386
factory: PHPStan\PhpDoc\LazyTypeNodeResolverExtensionRegistryProvider
399387

400-
-
401-
class: PHPStan\PhpDoc\TypeStringResolver
402-
403-
-
404-
class: PHPStan\PhpDoc\StubValidator
405-
406388
-
407389
class: PHPStan\PhpDoc\DefaultStubFilesProvider
408390
arguments:
@@ -411,21 +393,6 @@ services:
411393
autowired:
412394
- PHPStan\PhpDoc\StubFilesProvider
413395

414-
-
415-
class: PHPStan\PhpDoc\JsonValidateStubFilesExtension
416-
tags:
417-
- phpstan.stubFilesExtension
418-
419-
-
420-
class: PHPStan\PhpDoc\ReflectionClassStubFilesExtension
421-
tags:
422-
- phpstan.stubFilesExtension
423-
424-
-
425-
class: PHPStan\PhpDoc\ReflectionEnumStubFilesExtension
426-
tags:
427-
- phpstan.stubFilesExtension
428-
429396
-
430397
class: PHPStan\Analyser\Analyser
431398
arguments:

src/Parser/LexerFactory.php

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

55
use PhpParser\Lexer;
6+
use PHPStan\DependencyInjection\AutowiredService;
67
use PHPStan\Php\PhpVersion;
78
use const PHP_VERSION_ID;
89

10+
#[AutowiredService]
911
final class LexerFactory
1012
{
1113

src/PhpDoc/ConstExprNodeResolver.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace PHPStan\PhpDoc;
44

55
use PHPStan\Analyser\NameScope;
6+
use PHPStan\DependencyInjection\AutowiredService;
67
use PHPStan\PhpDocParser\Ast\ConstExpr\ConstExprArrayNode;
78
use PHPStan\PhpDocParser\Ast\ConstExpr\ConstExprFalseNode;
89
use PHPStan\PhpDocParser\Ast\ConstExpr\ConstExprFloatNode;
@@ -26,6 +27,7 @@
2627
use PHPStan\Type\Type;
2728
use function strtolower;
2829

30+
#[AutowiredService]
2931
final class ConstExprNodeResolver
3032
{
3133

src/PhpDoc/JsonValidateStubFilesExtension.php

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

33
namespace PHPStan\PhpDoc;
44

5+
use PHPStan\DependencyInjection\AutowiredService;
56
use PHPStan\Php\PhpVersion;
67

8+
#[AutowiredService]
79
final class JsonValidateStubFilesExtension implements StubFilesExtension
810
{
911

src/PhpDoc/PhpDocStringResolver.php

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

33
namespace PHPStan\PhpDoc;
44

5+
use PHPStan\DependencyInjection\AutowiredService;
56
use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode;
67
use PHPStan\PhpDocParser\Lexer\Lexer;
78
use PHPStan\PhpDocParser\Parser\PhpDocParser;
89
use PHPStan\PhpDocParser\Parser\TokenIterator;
910

11+
#[AutowiredService]
1012
final class PhpDocStringResolver
1113
{
1214

src/PhpDoc/ReflectionClassStubFilesExtension.php

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

33
namespace PHPStan\PhpDoc;
44

5+
use PHPStan\DependencyInjection\AutowiredService;
56
use PHPStan\Php\PhpVersion;
67

8+
#[AutowiredService]
79
final class ReflectionClassStubFilesExtension implements StubFilesExtension
810
{
911

src/PhpDoc/ReflectionEnumStubFilesExtension.php

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

33
namespace PHPStan\PhpDoc;
44

5+
use PHPStan\DependencyInjection\AutowiredService;
56
use PHPStan\Php\PhpVersion;
67

8+
#[AutowiredService]
79
final class ReflectionEnumStubFilesExtension implements StubFilesExtension
810
{
911

src/PhpDoc/StubValidator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use PHPStan\Analyser\InternalError;
88
use PHPStan\Analyser\NodeScopeResolver;
99
use PHPStan\Collectors\Registry as CollectorRegistry;
10+
use PHPStan\DependencyInjection\AutowiredService;
1011
use PHPStan\DependencyInjection\Container;
1112
use PHPStan\DependencyInjection\DerivativeContainerFactory;
1213
use PHPStan\Php\PhpVersion;
@@ -101,6 +102,7 @@
101102
use function count;
102103
use function sprintf;
103104

105+
#[AutowiredService]
104106
final class StubValidator
105107
{
106108

src/PhpDoc/TypeNodeResolver.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use PhpParser\Node\Name;
1111
use PHPStan\Analyser\ConstantResolver;
1212
use PHPStan\Analyser\NameScope;
13+
use PHPStan\DependencyInjection\AutowiredService;
1314
use PHPStan\PhpDoc\Tag\TemplateTag;
1415
use PHPStan\PhpDocParser\Ast\ConstExpr\ConstExprArrayNode;
1516
use PHPStan\PhpDocParser\Ast\ConstExpr\ConstExprFalseNode;
@@ -124,6 +125,7 @@
124125
use function strtolower;
125126
use function substr;
126127

128+
#[AutowiredService]
127129
final class TypeNodeResolver
128130
{
129131

src/PhpDoc/TypeStringResolver.php

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

55
use PHPStan\Analyser\NameScope;
6+
use PHPStan\DependencyInjection\AutowiredService;
67
use PHPStan\PhpDocParser\Lexer\Lexer;
78
use PHPStan\PhpDocParser\Parser\TokenIterator;
89
use PHPStan\PhpDocParser\Parser\TypeParser;
910
use PHPStan\Type\Type;
1011

12+
#[AutowiredService]
1113
final class TypeStringResolver
1214
{
1315

0 commit comments

Comments
 (0)