private function tryAutowiring($serviceId, $serviceKey)
    {
        if (!class_exists($serviceKey) || !is_subclass_of($serviceKey, ConfigurableService::class)) {
            throw new ServiceNotFoundException($serviceId);
        }
        return new $serviceKey();
    }
private function tryAutowiring($serviceId, $serviceKey)
    {
        if (!class_exists($serviceKey) || !is_subclass_of($serviceKey, ConfigurableService::class)) {
            throw new ServiceNotFoundException($serviceId);
        }
        return new $serviceKey();
    }
private function tryAutowiring ( $ serviceId , $ serviceKey ) { if ( ! class_exists ( $ serviceKey ) || ! is_subclass_of ( $ serviceKey , ConfigurableService :: class ) ) { throw new ServiceNotFoundException ( $ serviceId ) ; } return new $ serviceKey ( ) ; }
Try to initialize the class without parameters

@param string $serviceId
@param string $serviceKey
@throws ServiceNotFoundException
@return ConfigurableService
Try to initialize the class without parameters