1 | <?php |
||
13 | class AssetCacheManager |
||
14 | { |
||
15 | /** |
||
16 | * @var \Psr\Container\ContainerInterface; |
||
17 | */ |
||
18 | protected $container; |
||
19 | |||
20 | /** |
||
21 | * @var array Cache configuration. |
||
22 | */ |
||
23 | protected $config = array(); |
||
24 | |||
25 | /** |
||
26 | * Construct the AssetCacheManager |
||
27 | * |
||
28 | * @param ContainerInterface $container |
||
29 | * @param array $config |
||
30 | */ |
||
31 | public function __construct( |
||
38 | |||
39 | /** |
||
40 | * Set the cache (if any) on the asset, and return the new AssetCache. |
||
41 | * |
||
42 | * @param string $path Path to asset |
||
43 | * @param AssetInterface $asset Assetic Asset Interface |
||
44 | * |
||
45 | * @return AssetInterface|CacheInterface |
||
46 | */ |
||
47 | public function setCache($path, AssetInterface $asset) |
||
60 | |||
61 | /** |
||
62 | * Get the cache provider. First checks to see if the provider is callable, |
||
63 | * then will attempt to get it from the service locator, finally will fallback |
||
64 | * to a class mapper. |
||
65 | * |
||
66 | * @param $path |
||
67 | * |
||
68 | * @return array |
||
69 | */ |
||
70 | private function getProvider($path) |
||
99 | |||
100 | /** |
||
101 | * Get the cache provider config. Use default values if defined. |
||
102 | * |
||
103 | * @param $path |
||
104 | * |
||
105 | * @return null|array Cache config definition. Returns null if not found in |
||
106 | * config. |
||
107 | */ |
||
108 | private function getCacheProviderConfig($path) |
||
125 | |||
126 | /** |
||
127 | * Class mapper to provide backwards compatibility |
||
128 | * |
||
129 | * @param $class |
||
130 | * |
||
131 | * @return string |
||
132 | */ |
||
133 | private function classMapper($class) |
||
152 | } |
||
153 |
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.