Skip to content

Commit 824b636

Browse files
committed
Move more services that cannot be converted to attributes to services.neon
1 parent 12bad70 commit 824b636

File tree

2 files changed

+63
-63
lines changed

2 files changed

+63
-63
lines changed

conf/config.neon

Lines changed: 0 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -279,66 +279,3 @@ services:
279279
implement: PHPStan\Reflection\Php\PhpMethodReflectionFactory
280280
arguments:
281281
parser: @defaultAnalysisParser
282-
283-
simpleRelativePathHelper:
284-
class: PHPStan\File\RelativePathHelper
285-
factory: PHPStan\File\SimpleRelativePathHelper
286-
arguments:
287-
currentWorkingDirectory: %currentWorkingDirectory%
288-
autowired: false
289-
290-
parentDirectoryRelativePathHelper:
291-
class: PHPStan\File\ParentDirectoryRelativePathHelper
292-
arguments:
293-
parentDirectory: %currentWorkingDirectory%
294-
autowired: false
295-
296-
# Reflection providers
297-
298-
betterReflectionReflector:
299-
class: PHPStan\Reflection\BetterReflection\Reflector\MemoizingReflector
300-
arguments:
301-
reflector: @originalBetterReflectionReflector
302-
autowired: false
303-
304-
nodeScopeResolverReflector:
305-
factory: @betterReflectionReflector
306-
autowired: false
307-
308-
betterReflectionProvider:
309-
class: PHPStan\Reflection\BetterReflection\BetterReflectionProvider
310-
arguments:
311-
reflector: @betterReflectionReflector
312-
universalObjectCratesClasses: %universalObjectCratesClasses%
313-
autowired: false
314-
315-
-
316-
factory: @PHPStan\Reflection\BetterReflection\SourceStubber\PhpStormStubsSourceStubberFactory::create()
317-
autowired:
318-
- PHPStan\BetterReflection\SourceLocator\SourceStubber\PhpStormStubsSourceStubber
319-
320-
-
321-
factory: @PHPStan\Reflection\BetterReflection\SourceStubber\ReflectionSourceStubberFactory::create()
322-
autowired:
323-
- PHPStan\BetterReflection\SourceLocator\SourceStubber\ReflectionSourceStubber
324-
325-
freshStubParser:
326-
class: PHPStan\Parser\StubParser
327-
arguments:
328-
parser: @php8PhpParser
329-
autowired: false
330-
331-
stubParser:
332-
class: PHPStan\Parser\CachedParser
333-
arguments:
334-
originalParser: @freshStubParser
335-
cachedNodesByStringCountMax: %cache.nodesByStringCountMax%
336-
autowired: false
337-
338-
phpstanDiagnoseExtension:
339-
class: PHPStan\Diagnose\PHPStanDiagnoseExtension
340-
arguments:
341-
composerAutoloaderProjectPaths: %composerAutoloaderProjectPaths%
342-
allConfigFiles: %allConfigFiles%
343-
configPhpVersion: %phpVersion%
344-
autowired: false

conf/services.neon

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,69 @@ services:
155155
reportMaybes: %reportMaybesInMethodSignatures%
156156
reportStatic: %reportStaticMethodSignatures%
157157

158+
simpleRelativePathHelper:
159+
class: PHPStan\File\RelativePathHelper
160+
factory: PHPStan\File\SimpleRelativePathHelper
161+
arguments:
162+
currentWorkingDirectory: %currentWorkingDirectory%
163+
autowired: false
164+
165+
parentDirectoryRelativePathHelper:
166+
class: PHPStan\File\ParentDirectoryRelativePathHelper
167+
arguments:
168+
parentDirectory: %currentWorkingDirectory%
169+
autowired: false
170+
171+
# Reflection providers
172+
173+
betterReflectionReflector:
174+
class: PHPStan\Reflection\BetterReflection\Reflector\MemoizingReflector
175+
arguments:
176+
reflector: @originalBetterReflectionReflector
177+
autowired: false
178+
179+
nodeScopeResolverReflector:
180+
factory: @betterReflectionReflector
181+
autowired: false
182+
183+
betterReflectionProvider:
184+
class: PHPStan\Reflection\BetterReflection\BetterReflectionProvider
185+
arguments:
186+
reflector: @betterReflectionReflector
187+
universalObjectCratesClasses: %universalObjectCratesClasses%
188+
autowired: false
189+
190+
-
191+
factory: @PHPStan\Reflection\BetterReflection\SourceStubber\PhpStormStubsSourceStubberFactory::create()
192+
autowired:
193+
- PHPStan\BetterReflection\SourceLocator\SourceStubber\PhpStormStubsSourceStubber
194+
195+
-
196+
factory: @PHPStan\Reflection\BetterReflection\SourceStubber\ReflectionSourceStubberFactory::create()
197+
autowired:
198+
- PHPStan\BetterReflection\SourceLocator\SourceStubber\ReflectionSourceStubber
199+
200+
freshStubParser:
201+
class: PHPStan\Parser\StubParser
202+
arguments:
203+
parser: @php8PhpParser
204+
autowired: false
205+
206+
stubParser:
207+
class: PHPStan\Parser\CachedParser
208+
arguments:
209+
originalParser: @freshStubParser
210+
cachedNodesByStringCountMax: %cache.nodesByStringCountMax%
211+
autowired: false
212+
213+
phpstanDiagnoseExtension:
214+
class: PHPStan\Diagnose\PHPStanDiagnoseExtension
215+
arguments:
216+
composerAutoloaderProjectPaths: %composerAutoloaderProjectPaths%
217+
allConfigFiles: %allConfigFiles%
218+
configPhpVersion: %phpVersion%
219+
autowired: false
220+
158221
fileExcluderAnalyse:
159222
class: PHPStan\File\FileExcluder
160223
factory: @PHPStan\File\FileExcluderFactory::createAnalyseFileExcluder()

0 commit comments

Comments
 (0)