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
/**
13
* @var object
14
*/
15
protected $entity;
16
17
/**
18
* @var FormInterface
19
*/
20
protected $form;
21
22
/**
23
* @var Request
24
*/
25
protected $request;
26
27
/**
28
* @var Response
29
*/
30
protected $response;
31
32
/**
33
* AdminListEvent constructor.
34
*
35
* @param object $entity
36
* @param Request $request
37
* @param FormInterface|null $form
38
*/
39
1
public function __construct($entity, Request $request, FormInterface $form = null)
You have injected the Request via parameter $request. This is generally not recommended as there might be multiple instances during a request cycle (f.e. when using sub-requests). Instead, it is recommended to inject the RequestStack and retrieve the current request each time you need it via getCurrentRequest().
The method Symfony\Component\EventD...vent::stopPropagation() has been deprecated with message: since Symfony 4.3, use "Symfony\Contracts\EventDispatcher\Event" instead
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be
removed from the class and what other method or class to use 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.