registerTransport(new WebPushTransport()); // register transports provided by other apps $event = new RegisterTransportsEvent($this); $dispatcher->dispatchTyped($event); } /** * @return Transport[] */ public function getTransports(): array { return $this->transports; } public function registerTransport(Transport $transport): self { $this->transports[] = $transport; return $this; } }