for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* User: siim
* Date: 15.02.19
* Time: 6:44
*/
namespace Sf4\Api\RequestHandler\Traits;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
trait EventDispatcherTrait
{
/** @var EventDispatcherInterface $dispatcher */
protected $dispatcher;
* @return EventDispatcherInterface
public function getDispatcher(): EventDispatcherInterface
return $this->dispatcher;
}
* @param EventDispatcherInterface $dispatcher
public function setDispatcher(EventDispatcherInterface $dispatcher): void
$this->dispatcher = $dispatcher;