public function __construct(Connection $connection, EventDispatcherInterface $events) { $this->connection = $connection; $this->events = $events; }