1: <?php
2:
3: namespace PHPixie\BundleFramework\Configuration\FilesystemLocator;
4:
5: use PHPixie\BundleFramework\Assets;
6:
7: 8: 9:
10: class Template extends \PHPixie\BundleFramework\Configuration\FilesystemLocator
11: {
12: 13: 14:
15: protected $assets;
16:
17: 18: 19: 20: 21: 22:
23: public function __construct($bundleLocators, $assets, $overridesLocator = null)
24: {
25: $this->assets = $assets;
26: parent::__construct($bundleLocators, $overridesLocator);
27: }
28:
29: 30: 31:
32: protected function getLocator($name)
33: {
34: if($name === 'framework')
35: {
36: return $this->assets->frameworkTemplateLocator();
37: }
38:
39: return $this->getBundleLocator($name);
40: }
41: }