1 | <?php |
||
26 | class RepositoryManagerProxy implements RepositoryManager |
||
27 | { |
||
28 | /** |
||
29 | * @var Container |
||
30 | */ |
||
31 | private $puli; |
||
32 | |||
33 | /** |
||
34 | * Creates the proxy. |
||
35 | * |
||
36 | * @param Container $puli The service locator to fetch the actual repository |
||
37 | * manager from |
||
38 | */ |
||
39 | public function __construct(Container $puli) |
||
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | public function getContext() |
||
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | public function getRepository() |
||
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | public function addRootPathMapping(PathMapping $mapping, $flags = 0) |
||
67 | |||
68 | /** |
||
69 | * {@inheritdoc} |
||
70 | */ |
||
71 | public function removeRootPathMapping($repositoryPath) |
||
75 | |||
76 | /** |
||
77 | * {@inheritdoc} |
||
78 | */ |
||
79 | public function removeRootPathMappings(Expression $expr) |
||
83 | |||
84 | /** |
||
85 | * {@inheritdoc} |
||
86 | */ |
||
87 | public function clearRootPathMappings() |
||
91 | |||
92 | /** |
||
93 | * {@inheritdoc} |
||
94 | */ |
||
95 | public function getRootPathMapping($repositoryPath) |
||
99 | |||
100 | /** |
||
101 | * {@inheritdoc} |
||
102 | */ |
||
103 | public function findRootPathMappings(Expression $expr) |
||
107 | |||
108 | /** |
||
109 | * {@inheritdoc} |
||
110 | */ |
||
111 | public function getRootPathMappings() |
||
115 | |||
116 | /** |
||
117 | * {@inheritdoc} |
||
118 | */ |
||
119 | public function hasRootPathMapping($repositoryPath) |
||
123 | |||
124 | /** |
||
125 | * {@inheritdoc} |
||
126 | */ |
||
127 | public function hasRootPathMappings(Expression $expr = null) |
||
131 | |||
132 | /** |
||
133 | * {@inheritdoc} |
||
134 | */ |
||
135 | public function getPathMapping($repositoryPath, $moduleName) |
||
136 | { |
||
137 | return $this->puli->getRepositoryManager()->getPathMapping($repositoryPath, $moduleName); |
||
138 | } |
||
139 | |||
140 | /** |
||
141 | * {@inheritdoc} |
||
142 | */ |
||
143 | public function getPathMappings() |
||
147 | |||
148 | /** |
||
149 | * {@inheritdoc} |
||
150 | */ |
||
151 | public function findPathMappings(Expression $expr) |
||
155 | |||
156 | /** |
||
157 | * {@inheritdoc} |
||
158 | */ |
||
159 | public function hasPathMapping($repositoryPath, $moduleName) |
||
160 | { |
||
161 | return $this->puli->getRepositoryManager()->hasPathMapping($repositoryPath, $moduleName); |
||
162 | } |
||
163 | |||
164 | /** |
||
165 | * {@inheritdoc} |
||
166 | */ |
||
167 | public function hasPathMappings(Expression $expr = null) |
||
171 | |||
172 | /** |
||
173 | * {@inheritdoc} |
||
174 | */ |
||
175 | public function getPathConflicts() |
||
179 | |||
180 | /** |
||
181 | * {@inheritdoc} |
||
182 | */ |
||
183 | public function buildRepository() |
||
187 | |||
188 | /** |
||
189 | * {@inheritdoc} |
||
190 | */ |
||
191 | public function clearRepository() |
||
195 | } |
||
196 |