public function __construct(MWP_ServiceContainer_Interface $container) { $this->container = $container; $this->dispatcher = $container->getEventDispatcher(); $this->requestStack = $container->getRequestStack(); // We will need master response callback for fatal error handling. $this->responseCallback = $container->getResponseCallback(); }