/** * (non-PHPdoc) * @see \Symfony\Component\HttpKernel\CacheWarmer\WarmableInterface::warmUp() */ public function warmUp($cacheDir) { $this->loader->load($this->sourceFile, $this->parseRobots); }
/** * Constructor * @param RequestStack $requestStack * @param UserAgentLoaderService $loader * @param string $sourceFile * @param boolean $parseRobots */ public function __construct(RequestStack $requestStack, UserAgentLoaderService $loader, $sourceFile, $parseRobots = false) { $this->requestStack = $requestStack; $this->parseRobots = $parseRobots; $this->data = $loader->load($sourceFile, $this->parseRobots); }