Nette\DI\Container::getServiceType PHP Метод

getServiceType() публичный Метод

Gets the service type by name.
public getServiceType ( $name ) : string
Результат string
    public function getServiceType($name)
    {
        if (isset($this->meta[self::ALIASES][$name])) {
            return $this->getServiceType($this->meta[self::ALIASES][$name]);
        } elseif (isset($this->meta[self::SERVICES][$name])) {
            return $this->meta[self::SERVICES][$name];
        } else {
            throw new MissingServiceException("Service '{$name}' not found.");
        }
    }