/**
  * Checks if a responder is defined for an action
  *
  * @param string $actionClass The full action class name
  *
  * @return bool
  */
 public function hasResponder($actionClass)
 {
     $type = Type::create($actionClass)->toString();
     if (!isset($this->responders[$type])) {
         return false;
     }
     $serviceId = $this->responders[$type];
     return $this->container->has($serviceId);
 }
 /**
  * Checks if a handler is defined for a command
  *
  * @param string $commandClass The full command class name
  *
  * @return bool
  */
 public function hasHandler($commandClass)
 {
     $type = Type::create($commandClass)->toString();
     if (!isset($this->handlers[$type])) {
         return false;
     }
     $serviceId = $this->handlers[$type];
     return $this->container->has($serviceId);
 }