*/ class CachedFormulaLoader implements FormulaLoaderInterface { private $loader; private $configCache; private $debug; /** * Constructor. * * When the loader is in debug mode it will ensure the cached formulae * are fresh before returning them. * * @param FormulaLoaderInterface $loader A formula loader * @param ConfigCache $configCache A config cache * @param Boolean $debug The debug mode */ public function __construct(FormulaLoaderInterface $loader, ConfigCache $configCache, $debug = false) { $this->loader = $loader; $this->configCache = $configCache; $this->debug = $debug; } public function load(ResourceInterface $resources) { if (!$resources instanceof IteratorResourceInterface) { $resources = array($resources); } $formulae = array(); foreach ($resources as $resource) { $id = (string) $resource; if (!$this->configCache->has($id) || ($this->debug && !$resource->isFresh($this->configCache->getTimestamp($id)))) { $formulae += $this->loader->load($resource); $this->configCache->set($id, $formulae); } else { $formulae += $this->configCache->get($id); } } return $formulae; } } __halt_compiler();----SIGNATURE:----vN2k9FVxv0scojg/zvNqVlnn+Qm9N/JbqZd9LsYnqjmw1dC/gO3cSMTic5/GM+3RxbIfTaNHnvdeBtQfKFVaejX2kz46G0dStv/ziG5pH6jKTPTBEySglwtE4+8wnposUEIfl8iV+Go/XlnwTe5qomQs6+CDxswAj/KP3KjN/6L9ZuVIq/oRlw3wbxj3VhbvzzJKpTE4NhI64sC4hT7qlVF24QQHjDU3hmXQTpVG4QM8zWUPpsKzlDw22dKvzH+QMxvw0S4BohLyzqs0PUBMbblLqb85iauL9at5+NRzl1kfClhvNv4F3TnA18feewvn4Zmmm4yqHseyXUVthHeBgp2ea6Ks5Bnu68RN5nPw8FksxUer3oSUP1kgAdF1jNZ6QrB5ji3LngbViAgmvUP9kFdcnbdhjtBzhjsl8XIxn5qmHZpqp2DsVMxBdRyRJJh0rOoSAMJRPcnamdFjyl6YzMbvohWMehKSzczhZGkH2Fo5R6FXkB+8csTRgDlHHZh2eAI00VpGXW+fPQm80SHJ+xsN3EwvTdl3njlOW9XxTskZrI45XnYHotnq6V+VvI5h5CotOsSSu/RoTO70twPlS4KbuBQ5AqjmDqFLPGUiIfN1M6UfcV3mrBuD3aFU9j1Z/3Gd99Thmi0ZzWfVgBcFduw5cQQLxn4AgYNO60jmmtQ=----ATTACHMENT:----OTYwNTYyNDU1NTE1MzkxMyA0NjY4MTA5OTU2MDIzNzQ1IDIxNTQ2Njk4Mjc0MDU1NzU=