function ServicesConfigurator::get
Gets an already defined service definition.
Throws
ServiceNotFoundException if the service definition does not exist
File
-
vendor/
symfony/ dependency-injection/ Loader/ Configurator/ ServicesConfigurator.php, line 139
Class
- ServicesConfigurator
- @author Nicolas Grekas <p@tchwork.com>
Namespace
Symfony\Component\DependencyInjection\Loader\ConfiguratorCode
public final function get(string $id) : ServiceConfigurator {
$definition = $this->container
->getDefinition($id);
return new ServiceConfigurator($this->container, $definition->getInstanceofConditionals(), true, $this, $definition, $id, []);
}