1 | <?php |
||
33 | class ComponentScanner implements Scanner |
||
|
|||
34 | { |
||
35 | /** |
||
36 | * @var string[] |
||
37 | */ |
||
38 | private $scanDirs; |
||
39 | |||
40 | /** |
||
41 | * ComponentAutoWiring constructor. |
||
42 | * @param string[] $scanDirs |
||
43 | */ |
||
44 | 1140 | public function __construct(array $scanDirs) |
|
48 | |||
49 | /** |
||
50 | * @param $reader AnnotationReader |
||
51 | * @param $refClass \ReflectionClass |
||
52 | * @return Annotation |
||
53 | */ |
||
54 | 22 | public function findAnnotation($reader, $refClass) |
|
58 | |||
59 | /** |
||
60 | * @return string |
||
61 | */ |
||
62 | 16 | public function getAnnotationClass() |
|
66 | |||
67 | /** |
||
68 | * @param $anno Component |
||
69 | * @param $refClass \ReflectionClass |
||
70 | * @return ComponentDefinition |
||
71 | */ |
||
72 | 17 | public function createComponentDefinition($anno, $refClass) |
|
76 | |||
77 | /** |
||
78 | * @param \Twig_Environment $twig |
||
79 | * @param array $components |
||
80 | * @return string |
||
81 | */ |
||
82 | 21 | public function generate(\Twig_Environment $twig, array $components) |
|
100 | |||
101 | 18 | public function generateExtend(\Twig_Environment $twig, array $components) |
|
105 | |||
106 | /** |
||
107 | * @return string[] |
||
108 | */ |
||
109 | 22 | public function getScanDirs() |
|
113 | } |