cacheStrategies as $className) { $method = new $className($prefix); if ($method instanceof LoaderStrategy && $method->isAvailable()) { $this->cache = $method; break; } } if (null === $this->cache) { throw new Exception('No Cache available'); } } public function register($prepend = false) { $this->cache->register($prepend); } }