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...
9
{
10
/**
11
* @var Request
12
*/
13
protected $request;
14
15
/**
16
* @var string
17
*/
18
protected $reference;
19
20
/**
21
* @var int
22
*/
23
protected $value;
24
25
/**
26
* @param Request $request
27
* @param string $reference
28
* @param int $value
29
*/
30
8
public function __construct(Request $request, $reference, $value)
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().
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.