1 | <?php |
||
14 | class RelativeNamespaceDiscovery extends AbstractClassDiscovery implements ClassLoaderAwareInterface |
||
15 | { |
||
16 | use ClassLoaderAwareTrait; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $relativeNamespace; |
||
22 | |||
23 | /** |
||
24 | * Psr4Discovery constructor. |
||
25 | * |
||
26 | * @param $relativeNamespace |
||
27 | */ |
||
28 | public function __construct($relativeNamespace) |
||
32 | |||
33 | /** |
||
34 | * @return string |
||
35 | */ |
||
36 | public function getRelativeNamespace() |
||
40 | |||
41 | /** |
||
42 | * @inheritDoc |
||
43 | */ |
||
44 | public function getClasses() |
||
66 | |||
67 | /** |
||
68 | * {@inheritdoc} |
||
69 | */ |
||
70 | public function getFile($class) |
||
74 | |||
75 | /** |
||
76 | * @param $directories |
||
77 | * @param $pattern |
||
78 | * |
||
79 | * @return \Symfony\Component\Finder\Finder |
||
80 | */ |
||
81 | protected function search($directories, $pattern) |
||
90 | |||
91 | /** |
||
92 | * @param $path |
||
93 | * |
||
94 | * @return mixed |
||
95 | */ |
||
96 | protected function convertPathToNamespace($path) |
||
100 | |||
101 | /** |
||
102 | * @return string |
||
103 | */ |
||
104 | public function convertNamespaceToPath($namespace) |
||
108 | } |
||
109 |