The class Symfony\Component\EventDispatcher\Event has been deprecated with message: since Symfony 4.3, use "Symfony\Contracts\EventDispatcher\Event" instead
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be
removed from the class and what other constant to use instead.
Loading history...
11
{
12
public const NAME = 'sitemap.pre_render';
13
14
/** @var ArrayCollection */
15
private $extraItems;
16
17
/** @var string */
18
private $locale;
19
20
public function __construct($locale)
21
{
22
$this->extraItems = new ArrayCollection();
23
$this->locale = $locale;
24
}
25
26
public function getLocale(): string
27
{
28
return $this->locale;
29
}
30
31
public function getExtraItems(): Collection
32
{
33
return $this->extraItems;
34
}
35
36
public function addExtraItem(SitemapUrl $extraItem): void
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.