/**
  * @throws InvalidUriResolverImplementation
  */
 private function guardUriResolverIsValid()
 {
     $uriResolver = $this->config->getUriResolver();
     if (!$uriResolver instanceof ResolvesUri) {
         throw new InvalidUriResolverImplementation();
     }
 }
Beispiel #2
0
 /**
  * @throws MalformedRequestUri
  * @return ServesUriComponents
  */
 private function getUriComponents()
 {
     $uriResolver = $this->config->getUriResolver();
     $requestInfo = $this->config->getRequestInfo();
     $uriComponents = $uriResolver->resolveUri($requestInfo);
     return $uriComponents;
 }
 /**
  * @param ServesIceHawkConfig $config
  */
 public function __construct(ServesIceHawkConfig $config)
 {
     $this->requestInfo = $config->getRequestInfo();
     $this->uriResolver = $config->getUriResolver();
     $this->uriRewriter = $config->getUriRewriter();
     $this->eventListeners = $config->getEventListeners();
     $this->domainNamespace = $config->getDomainNamespace();
 }
Beispiel #4
0
 /**
  * @param ServesIceHawkConfig $config
  * @param ControlsHandlingBehaviour $delegate
  */
 public function __construct(ServesIceHawkConfig $config, ControlsHandlingBehaviour $delegate)
 {
     $this->uriRewriter = $config->getUriRewriter();
     $this->uriResolver = $config->getUriResolver();
     $this->domainNamespace = $config->getDomainNamespace();
     $this->eventListeners = $config->getEventListeners();
     $this->requestInfo = $config->getRequestInfo();
     $this->delegate = $delegate;
 }