1: <?php
2:
3: namespace PHPixie;
4:
5: class Filesystem
6: {
7: protected $builder;
8:
9: public function __construct()
10: {
11: $this->builder = $this->buildBuilder();
12: }
13:
14: public function builder()
15: {
16: return $this->builder;
17: }
18:
19: public function root($directory)
20: {
21: return $this->builder->root($directory);
22: }
23:
24: public function buildLocator($configData, $root, $locatorRegistry = null)
25: {
26: $locators = $this->builder->locators();
27: $builder = $locators->builder($root, $locatorRegistry);
28: return $builder->buildFromConfig($configData);
29: }
30:
31: protected function buildBuilder()
32: {
33: return new Filesystem\Builder();
34: }
35: }