private $expressionLanguageProviders = array();
/**
- * Constructor.
- *
* @param LoaderInterface $loader A LoaderInterface instance
* @param mixed $resource The main resource to load
* @param array $options An array of options
/**
* Sets the ConfigCache factory to use.
- *
- * @param ConfigCacheFactoryInterface $configCacheFactory The factory to use
*/
public function setConfigCacheFactory(ConfigCacheFactoryInterface $configCacheFactory)
{
}
);
- require_once $cache->getPath();
+ if (!class_exists($this->options['matcher_cache_class'], false)) {
+ require_once $cache->getPath();
+ }
return $this->matcher = new $this->options['matcher_cache_class']($this->context);
}
}
);
- require_once $cache->getPath();
+ if (!class_exists($this->options['generator_cache_class'], false)) {
+ require_once $cache->getPath();
+ }
$this->generator = new $this->options['generator_cache_class']($this->context, $this->logger);
}