1 | <?php |
||
8 | final class CachedLoader implements LoaderInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var CacheInterface |
||
12 | */ |
||
13 | private $cache; |
||
14 | |||
15 | /** |
||
16 | * @var LoaderInterface |
||
17 | */ |
||
18 | private $loader; |
||
19 | |||
20 | /** |
||
21 | * @param CacheInterface $cache |
||
22 | * @param LoaderInterface $loader |
||
23 | */ |
||
24 | 12 | public function __construct(CacheInterface $cache, LoaderInterface $loader) |
|
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | 6 | public function load($path) |
|
46 | } |
||
47 |