-
Notifications
You must be signed in to change notification settings - Fork 24
/
extension.neon
116 lines (115 loc) · 3.91 KB
/
extension.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
parameters:
magento:
checkCollectionViaFactory: true
checkServiceContracts: true
checkResourceModelsUsedDirectly: true
magentoRoot: %currentWorkingDirectory%
extdn:
setTemplateDisallowedForBlockClasses: true
bootstrapFiles:
- magento-autoloader.php
parametersSchema:
magento: structure([
checkCollectionViaFactory: bool()
checkServiceContracts: bool()
checkResourceModelsUsedDirectly: bool()
magentoRoot: string()
])
extdn: structure([
setTemplateDisallowedForBlockClasses: bool()
])
conditionalTags:
bitExpert\PHPStan\Magento\Rules\AbstractModelRetrieveCollectionViaFactoryRule:
phpstan.rules.rule: %magento.checkCollectionViaFactory%
bitExpert\PHPStan\Magento\Rules\AbstractModelUseServiceContractRule:
phpstan.rules.rule: %magento.checkServiceContracts%
bitExpert\PHPStan\Magento\Rules\ResourceModelsShouldBeUsedDirectlyRule:
phpstan.rules.rule: %magento.checkResourceModelsUsedDirectly%
bitExpert\PHPStan\Magento\Rules\SetTemplateDisallowedForBlockRule:
phpstan.rules.rule: %extdn.setTemplateDisallowedForBlockClasses%
services:
-
class: bitExpert\PHPStan\Magento\Type\ObjectManagerDynamicReturnTypeExtension
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
-
class: bitExpert\PHPStan\Magento\Type\TestFrameworkObjectManagerDynamicReturnTypeExtension
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
-
class: bitExpert\PHPStan\Magento\Reflection\Framework\Session\SessionManagerMagicMethodReflectionExtension
tags:
- phpstan.broker.methodsClassReflectionExtension
-
class: bitExpert\PHPStan\Magento\Reflection\Framework\DataObjectMagicMethodReflectionExtension
tags:
- phpstan.broker.methodsClassReflectionExtension
-
class: bitExpert\PHPStan\Magento\Rules\GetCollectionMockMethodNeedsCollectionSubclassRule
tags:
- phpstan.rules.rule
-
class: bitExpert\PHPStan\Magento\Rules\AbstractModelRetrieveCollectionViaFactoryRule
-
class: bitExpert\PHPStan\Magento\Rules\AbstractModelUseServiceContractRule
-
class: bitExpert\PHPStan\Magento\Rules\ResourceModelsShouldBeUsedDirectlyRule
-
class: bitExpert\PHPStan\Magento\Rules\SetTemplateDisallowedForBlockRule
fileCacheStorage:
class: bitExpert\PHPStan\Magento\Autoload\Cache\FileCacheStorage
arguments:
directory: %tmpDir%/cache/PHPStan
autoloaderCache:
autowired: false
class: PHPStan\Cache\Cache
arguments:
storage: @fileCacheStorage
extensionAttributeDataProvider:
class: bitExpert\PHPStan\Magento\Autoload\DataProvider\ExtensionAttributeDataProvider
arguments:
magentoRoot: %magento.magentoRoot%
classLoaderProvider:
class: bitExpert\PHPStan\Magento\Autoload\DataProvider\ClassLoaderProvider
arguments:
magentoRoot: %magento.magentoRoot%
mockAutoloader:
class: bitExpert\PHPStan\Magento\Autoload\MockAutoloader
tags:
- phpstan.magento.autoloader
testFrameworkAutoloader:
class: bitExpert\PHPStan\Magento\Autoload\TestFrameworkAutoloader
arguments:
magentoRoot: %magento.magentoRoot%
tags:
- phpstan.magento.autoloader
factoryAutoloader:
class: bitExpert\PHPStan\Magento\Autoload\FactoryAutoloader
arguments:
cache: @autoloaderCache
classLoaderProvider: @classLoaderProvider
tags:
- phpstan.magento.autoloader
proxyAutoloader:
class: bitExpert\PHPStan\Magento\Autoload\ProxyAutoloader
arguments:
cache: @autoloaderCache
classLoaderProvider: @classLoaderProvider
tags:
- phpstan.magento.autoloader
extensionInterfaceAutoloader:
class: bitExpert\PHPStan\Magento\Autoload\ExtensionInterfaceAutoloader
arguments:
cache: @autoloaderCache
classLoaderProvider: @classLoaderProvider
attributeDataProvider: @extensionAttributeDataProvider
tags:
- phpstan.magento.autoloader
extensionAutoloader:
class: bitExpert\PHPStan\Magento\Autoload\ExtensionAutoloader
arguments:
cache: @autoloaderCache
classLoaderProvider: @classLoaderProvider
attributeDataProvider: @extensionAttributeDataProvider
tags:
- phpstan.magento.autoloader