public function __construct(RouterInterface $router, Browser $browser = null) { $this->router = $router; $this->browser = $browser; }