Пример #1
0
 /**
  * @param EventDispatcherInterface $dispatcher
  * @param int $itemsBySet
  * @param RouterInterface $router
  * @param Cache|null $cache
  * @param integer|null $cacheTtl
  */
 public function __construct(EventDispatcherInterface $dispatcher, RouterInterface $router, Cache $cache = null, $cacheTtl = null, $itemsBySet = null)
 {
     parent::__construct($dispatcher, $itemsBySet);
     $this->router = $router;
     $this->cache = $cache;
     $this->cacheTtl = $cacheTtl;
 }
Пример #2
0
 /**
  * @param EventDispatcherInterface $dispatcher Symfony's EventDispatcher
  * @param Filesystem $filesystem Symfony's Filesystem
  * @param $sitemapFilePrefix
  * @param int $itemsBySet
  */
 public function __construct(EventDispatcherInterface $dispatcher, Filesystem $filesystem, $sitemapFilePrefix = Configuration::DEFAULT_FILENAME, $itemsBySet = null)
 {
     parent::__construct($dispatcher, $itemsBySet);
     $this->filesystem = $filesystem;
     $this->sitemapFilePrefix = $sitemapFilePrefix;
 }