private function getServiceConfig(string $name)
    {
        $config = $this->services()[$name] ?? null;
        if ($config === null) {
            return null;
        }

        if (\is_string($config)) {
            return [
                'class' => $config,
            ];
        }
        if (\is_array($config) && array_key_exists('class', $config)) {
            return $config;
        }

        throw new InvalidConfigException('Config must be either type of string (class name) or array (with `class` element');
    }
private function getServiceConfig(string $name)
    {
        $config = $this->services()[$name] ?? null;
        if ($config === null) {
            return null;
        }

        if (\is_string($config)) {
            return [
                'class' => $config,
            ];
        }
        if (\is_array($config) && array_key_exists('class', $config)) {
            return $config;
        }

        throw new InvalidConfigException('Config must be either type of string (class name) or array (with `class` element');
    }
private function getServiceConfig ( string $ name ) { $ config = $ this -> services ( ) [ $ name ] ?? null ; if ( $ config === null ) { return null ; } if ( \ is_string ( $ config ) ) { return [ 'class' => $ config , ] ; } if ( \ is_array ( $ config ) && array_key_exists ( 'class' , $ config ) ) { return $ config ; } throw new InvalidConfigException ( 'Config must be either type of string (class name) or array (with `class` element' ) ; }
Get service class name

@param string $name

@return array|string|NULL
@throws InvalidConfigException
Get service class name