The class Symfony\Component\EventDispatcher\Event has been deprecated: since Symfony 4.3, use "Symfony\Contracts\EventDispatcher\Event" instead
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated annotation
7
class OldBuildMenuEvent extends /** @scrutinizer ignore-deprecated */ Event
Loading history...
8
{
9
/**
10
* @var array
11
*/
12
private $menuConfigurations;
13
14
/**
15
* @var bool
16
*/
17
private $buildResourceMenu;
18
19
/**
20
* MenuEvent constructor.
21
*/
22
public function __construct(array $menuConfigurations = [], bool $buildResourceMenu = true)
23
{
24
$this->menuConfigurations = $menuConfigurations;
25
$this->buildResourceMenu = $buildResourceMenu;
26
}
27
28
public function getMenuConfigurations(): array
29
{
30
return $this->menuConfigurations;
31
}
32
33
public function setMenuConfigurations(array $menuConfigurations)