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.
The type Kunstmaan\VotingBundle\Event\BcEvent has been defined more than once; this definition is ignored, only the first definition in this file (L15-17) is considered.
This check looks for classes that have been defined more than once in the same file.
If you can, we would recommend to use standard object-oriented programming
techniques. For example, to avoid multiple types, it might make sense to create a
common interface, and then multiple, different implementations for that interface.
This also has the side-effect of providing you with better IDE auto-completion,
static analysis and also better OPCode caching from PHP.
Loading history...
25
{
26
}
27
}
28
29
abstract class AbstractVoteEvent extends BcEvent implements EventInterface
30
{
31
/**
32
* @var Request
33
*/
34
protected $request;
35
36
/**
37
* @var string
38
*/
39
protected $reference;
40
41
/**
42
* @var int
43
*/
44
protected $value;
45
46
/**
47
* @param Request $request
48
* @param string $reference
49
* @param int $value
50
*/
51
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.