throw new \
LogicException(sprintf('Resetting a non-lazy manager service is not supported. Declare the "%s" service as lazy.',
$name));
} return;
} if (!
$manager instanceof LazyLoadingInterface
) { throw new \
LogicException(sprintf('Resetting a non-lazy manager service is not supported. Declare the "%s" service as lazy.',
$name));
} if ($manager instanceof GhostObjectInterface
) { throw new \
LogicException('Resetting a lazy-ghost-object manager service is not supported.'
);
} $manager->
setProxyInitializer(\Closure::
bind( function D&
$wrappedInstance, LazyLoadingInterface
$manager) use ($name) { if (isset($this->aliases
[$name])) { $name =
$this->aliases
[$name];
} if (isset($this->fileMap
[$name])) { $wrappedInstance =
$this->
load($this->fileMap
[$name], false
);
} else { $wrappedInstance =
$this->
{$this->methodMap
[$name]}(false
);
} $manager->
setProxyInitializer(null
);