public function create(Event $event) { $this->sitemap->add($event->get('loc'), array('changefreq' => $event->has('changefreq') ? $event->get('changefreq') : Url::YEARLY, 'priority' => $event->has('priority') ? $event->get('priority') : self::DEFAULT_PRIORITY, 'lastmod' => new \DateTime())); $this->dump($this->sitemap); }