Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
2 / 2
CRAP
100.00% covered (success)
100.00%
7 / 7
Template
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
2 / 2
3
100.00% covered (success)
100.00%
7 / 7
 __construct
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
3 / 3
 getLocator
100.00% covered (success)
100.00%
1 / 1
2
100.00% covered (success)
100.00%
4 / 4
<?php
namespace PHPixie\BundleFramework\Configuration\FilesystemLocator;
class Template extends \PHPixie\BundleFramework\Configuration\FilesystemLocator
{
    protected $assets;
    
    public function __construct($bundleLocators, $assets, $overridesLocator = null)
    {
        $this->assets = $assets;
        parent::__construct($bundleLocators, $overridesLocator);
    }
    
    protected function getLocator($name)
    {
        if($name === 'framework')
        {
            return $this->assets->frameworkTemplateLocator();
        }
        
        return $this->getBundleLocator($name);
    }
}