forked from ariddlestone/phpstan-cakephp2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
extension.neon
47 lines (47 loc) · 1.51 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
parameters:
ModelBehaviorsExtension:
behaviorPaths:
- vendor/cakephp/cakephp/lib/Cake/Model/Behavior/*.php
- lib/Cake/Model/Behavior/*.php
- app/Plugin/*/Model/Behavior/*.php
- app/Model/Behavior/*.php
SchemaService:
schemaPaths:
- app/Config/Schema/*.php
stubFiles:
- stubs/Model/Model.stub
- stubs/Routing/Router.stub
- stubs/Utility/ClassRegistry.stub
bootstrapFiles:
- stubs/basics.php
services:
- class: PHPStanCakePHP2\ClassComponentsExtension
tags:
- phpstan.broker.propertiesClassReflectionExtension
- class: PHPStanCakePHP2\ClassModelsExtension
tags:
- phpstan.broker.propertiesClassReflectionExtension
- class: PHPStanCakePHP2\ClassRegistryInitExtension
tags:
- phpstan.broker.dynamicStaticMethodReturnTypeExtension
- class: PHPStanCakePHP2\ClassTasksExtension
tags:
- phpstan.broker.propertiesClassReflectionExtension
- class: PHPStanCakePHP2\ModelBehaviorsExtension
arguments:
behaviorPaths: %ModelBehaviorsExtension.behaviorPaths%
tags:
- phpstan.broker.methodsClassReflectionExtension
- class: PHPStanCakePHP2\Service\SchemaService
arguments:
schemaPaths: %SchemaService.schemaPaths%
- class: PHPStanCakePHP2\LoadComponentOnFlyMethodReturnTypeExtension
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
parametersSchema:
ModelBehaviorsExtension: structure([
behaviorPaths: listOf(string())
])
SchemaService: structure([
schemaPaths: listOf(string())
])