Skip to content

Commit fe93616

Browse files
committed
Moved non-autowired service around
1 parent b6f9a22 commit fe93616

File tree

2 files changed

+113
-113
lines changed

2 files changed

+113
-113
lines changed

conf/config.neon

Lines changed: 0 additions & 113 deletions
Original file line numberDiff line numberDiff line change
@@ -345,30 +345,6 @@ services:
345345
-
346346
implement: PHPStan\File\FileExcluderRawFactory
347347

348-
fileExcluderAnalyse:
349-
class: PHPStan\File\FileExcluder
350-
factory: @PHPStan\File\FileExcluderFactory::createAnalyseFileExcluder()
351-
autowired: false
352-
353-
fileExcluderScan:
354-
class: PHPStan\File\FileExcluder
355-
factory: @PHPStan\File\FileExcluderFactory::createScanFileExcluder()
356-
autowired: false
357-
358-
fileFinderAnalyse:
359-
class: PHPStan\File\FileFinder
360-
arguments:
361-
fileExcluder: @fileExcluderAnalyse
362-
fileExtensions: %fileExtensions%
363-
autowired: false
364-
365-
fileFinderScan:
366-
class: PHPStan\File\FileFinder
367-
arguments:
368-
fileExcluder: @fileExcluderScan
369-
fileExtensions: %fileExtensions%
370-
autowired: false
371-
372348
-
373349
implement: PHPStan\Reflection\FunctionReflectionFactory
374350
arguments:
@@ -415,12 +391,6 @@ services:
415391
autowired:
416392
- PHPStan\Rules\Exceptions\DefaultExceptionTypeResolver
417393

418-
stubFileTypeMapper:
419-
class: PHPStan\Type\FileTypeMapper
420-
arguments:
421-
phpParser: @stubParser
422-
autowired: false
423-
424394
-
425395
class: PHPStan\Type\TypeAliasResolver
426396
factory: PHPStan\Type\UsefulTypeAliasResolver
@@ -460,70 +430,13 @@ services:
460430
parentDirectory: %currentWorkingDirectory%
461431
autowired: false
462432

463-
cacheStorage:
464-
class: PHPStan\Cache\FileCacheStorage
465-
arguments:
466-
directory: %tmpDir%/cache/PHPStan
467-
autowired: no
468-
469-
currentPhpVersionRichParser:
470-
class: PHPStan\Parser\RichParser
471-
arguments:
472-
parser: @currentPhpVersionPhpParser
473-
autowired: no
474-
475-
currentPhpVersionSimpleParser:
476-
class: PHPStan\Parser\CleaningParser
477-
arguments:
478-
wrappedParser: @currentPhpVersionSimpleDirectParser
479-
autowired: no
480-
481-
currentPhpVersionSimpleDirectParser:
482-
class: PHPStan\Parser\SimpleParser
483-
arguments:
484-
parser: @currentPhpVersionPhpParser
485-
autowired: no
486-
487-
defaultAnalysisParser:
488-
class: PHPStan\Parser\CachedParser
489-
arguments:
490-
originalParser: @pathRoutingParser
491-
cachedNodesByStringCountMax: %cache.nodesByStringCountMax%
492-
autowired: false
493-
494-
phpParserDecorator:
495-
class: PHPStan\Parser\PhpParserDecorator
496-
arguments:
497-
wrappedParser: @defaultAnalysisParser
498-
autowired: false
499-
500-
currentPhpVersionLexer:
501-
class: PhpParser\Lexer
502-
factory: @PHPStan\Parser\LexerFactory::create()
503-
autowired: false
504-
505-
currentPhpVersionPhpParser:
506-
factory: @currentPhpVersionPhpParserFactory::create()
507-
autowired: false
508-
509-
currentPhpVersionPhpParserFactory:
510-
class: PHPStan\Parser\PhpParserFactory
511-
arguments:
512-
lexer: @currentPhpVersionLexer
513-
autowired: false
514-
515433
registry:
516434
class: PHPStan\Rules\LazyRegistry
517435
autowired:
518436
- PHPStan\Rules\Registry
519437

520438
# Reflection providers
521439

522-
reflectionProvider:
523-
factory: @PHPStan\Reflection\ReflectionProvider\ReflectionProviderFactory::create
524-
autowired:
525-
- PHPStan\Reflection\ReflectionProvider
526-
527440
betterReflectionReflector:
528441
class: PHPStan\Reflection\BetterReflection\Reflector\MemoizingReflector
529442
arguments:
@@ -551,32 +464,6 @@ services:
551464
autowired:
552465
- PHPStan\BetterReflection\SourceLocator\SourceStubber\ReflectionSourceStubber
553466

554-
php8Lexer:
555-
class: PhpParser\Lexer\Emulative
556-
factory: @PHPStan\Parser\LexerFactory::createEmulative()
557-
autowired: false
558-
559-
php8PhpParser:
560-
class: PhpParser\Parser\Php8
561-
arguments:
562-
lexer: @php8Lexer
563-
autowired: false
564-
565-
php8Parser:
566-
class: PHPStan\Parser\SimpleParser
567-
arguments:
568-
parser: @php8PhpParser
569-
autowired: false
570-
571-
pathRoutingParser:
572-
class: PHPStan\Parser\PathRoutingParser
573-
arguments:
574-
currentPhpVersionRichParser: @currentPhpVersionRichParser
575-
currentPhpVersionSimpleParser: @currentPhpVersionSimpleParser
576-
php8Parser: @php8Parser
577-
singleReflectionFile: %singleReflectionFile%
578-
autowired: false
579-
580467
freshStubParser:
581468
class: PHPStan\Parser\StubParser
582469
arguments:

conf/services.neon

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,108 @@ services:
167167
reportMaybes: %reportMaybesInMethodSignatures%
168168
reportStatic: %reportStaticMethodSignatures%
169169

170+
fileExcluderAnalyse:
171+
class: PHPStan\File\FileExcluder
172+
factory: @PHPStan\File\FileExcluderFactory::createAnalyseFileExcluder()
173+
autowired: false
174+
175+
fileExcluderScan:
176+
class: PHPStan\File\FileExcluder
177+
factory: @PHPStan\File\FileExcluderFactory::createScanFileExcluder()
178+
autowired: false
179+
180+
fileFinderAnalyse:
181+
class: PHPStan\File\FileFinder
182+
arguments:
183+
fileExcluder: @fileExcluderAnalyse
184+
fileExtensions: %fileExtensions%
185+
autowired: false
186+
187+
fileFinderScan:
188+
class: PHPStan\File\FileFinder
189+
arguments:
190+
fileExcluder: @fileExcluderScan
191+
fileExtensions: %fileExtensions%
192+
autowired: false
193+
194+
stubFileTypeMapper:
195+
class: PHPStan\Type\FileTypeMapper
196+
arguments:
197+
phpParser: @stubParser
198+
autowired: false
199+
200+
php8Parser:
201+
class: PHPStan\Parser\SimpleParser
202+
arguments:
203+
parser: @php8PhpParser
204+
autowired: false
205+
206+
currentPhpVersionLexer:
207+
class: PhpParser\Lexer
208+
factory: @PHPStan\Parser\LexerFactory::create()
209+
autowired: false
210+
211+
currentPhpVersionPhpParser:
212+
factory: @currentPhpVersionPhpParserFactory::create()
213+
autowired: false
214+
215+
currentPhpVersionPhpParserFactory:
216+
class: PHPStan\Parser\PhpParserFactory
217+
arguments:
218+
lexer: @currentPhpVersionLexer
219+
autowired: false
220+
221+
currentPhpVersionSimpleDirectParser:
222+
class: PHPStan\Parser\SimpleParser
223+
arguments:
224+
parser: @currentPhpVersionPhpParser
225+
autowired: no
226+
227+
currentPhpVersionSimpleParser:
228+
class: PHPStan\Parser\CleaningParser
229+
arguments:
230+
wrappedParser: @currentPhpVersionSimpleDirectParser
231+
autowired: no
232+
233+
currentPhpVersionRichParser:
234+
class: PHPStan\Parser\RichParser
235+
arguments:
236+
parser: @currentPhpVersionPhpParser
237+
autowired: no
238+
239+
php8Lexer:
240+
class: PhpParser\Lexer\Emulative
241+
factory: @PHPStan\Parser\LexerFactory::createEmulative()
242+
autowired: false
243+
244+
php8PhpParser:
245+
class: PhpParser\Parser\Php8
246+
arguments:
247+
lexer: @php8Lexer
248+
autowired: false
249+
250+
pathRoutingParser:
251+
class: PHPStan\Parser\PathRoutingParser
252+
arguments:
253+
currentPhpVersionRichParser: @currentPhpVersionRichParser
254+
currentPhpVersionSimpleParser: @currentPhpVersionSimpleParser
255+
php8Parser: @php8Parser
256+
singleReflectionFile: %singleReflectionFile%
257+
autowired: false
258+
259+
phpParserDecorator:
260+
class: PHPStan\Parser\PhpParserDecorator
261+
arguments:
262+
wrappedParser: @defaultAnalysisParser
263+
autowired: false
264+
265+
defaultAnalysisParser:
266+
class: PHPStan\Parser\CachedParser
267+
arguments:
268+
originalParser: @pathRoutingParser
269+
cachedNodesByStringCountMax: %cache.nodesByStringCountMax%
270+
autowired: false
271+
170272
betterReflectionSourceLocator:
171273
class: PHPStan\BetterReflection\SourceLocator\Type\SourceLocator
172274
factory: @PHPStan\Reflection\BetterReflection\BetterReflectionSourceLocatorFactory::create
@@ -177,6 +279,17 @@ services:
177279
arguments:
178280
sourceLocator: @betterReflectionSourceLocator
179281

282+
reflectionProvider:
283+
factory: @PHPStan\Reflection\ReflectionProvider\ReflectionProviderFactory::create
284+
autowired:
285+
- PHPStan\Reflection\ReflectionProvider
286+
287+
cacheStorage:
288+
class: PHPStan\Cache\FileCacheStorage
289+
arguments:
290+
directory: %tmpDir%/cache/PHPStan
291+
autowired: no
292+
180293
errorFormatter.json:
181294
class: PHPStan\Command\ErrorFormatter\JsonErrorFormatter
182295
arguments:

0 commit comments

Comments
 (0)