Constructor
@api
EventDispatcherInterface $dispatcher An EventDispatcherInterface instance:
ControllerResolverInterface $resolver A ControllerResolverInterface instance:
public function __construct(EventDispatcherInterface $dispatcher, ControllerResolverInterface $resolver) {
$this->dispatcher = $dispatcher;
$this->resolver = $resolver;
}