ContainerInterface::hasParameter()

bool hasParameter(string $name) Checks if a parameter exists. Parameters string $name The parameter name Return Value bool The presence of parameter in container

ContainerDebugCommand

class ContainerDebugCommand extends ContainerAwareCommand A console command for retrieving information about services. Methods __construct(string|null $name = null) Constructor. from Command ignoreValidationErrors() Ignores validation errors. from Command setApplication(Application $application = null) Sets the application instance for this command. from Command setHelperSet(HelperSet $helperSet) Sets the helper set. from Command HelperSet getHelperSet() Gets the helper s

ContainerBuilder::setResources()

ContainerBuilder setResources(array $resources) Sets the resources for this configuration. Parameters array $resources An array of resources Return Value ContainerBuilder The current instance

ContainerBuilder::setProxyInstantiator()

setProxyInstantiator(InstantiatorInterface $proxyInstantiator) Sets the instantiator to be used when fetching proxies. Parameters InstantiatorInterface $proxyInstantiator

ContainerBuilder::setResourceTracking()

setResourceTracking(bool $track) Sets the track resources flag. If you are not using the loaders and therefore don't want to depend on the Config component, set this flag to false. Parameters bool $track true if you want to track resources, false otherwise

ContainerBuilderDebugDumpPass

class ContainerBuilderDebugDumpPass implements CompilerPassInterface Dumps the ContainerBuilder to a cache file so that it can be used by debugging tools such as the debug:container console command. Methods process(ContainerBuilder $container) You can modify the container here before it is dumped to PHP code. Details process(ContainerBuilder $container) You can modify the container here before it is dumped to PHP code. Parameters ContainerBu

ContainerBuilder::setAlias()

setAlias(string $alias, string|Alias $id) Sets an alias for an existing service. Parameters string $alias The alias to create string|Alias $id The service to alias Exceptions InvalidArgumentException if the id is not a string or an Alias InvalidArgumentException if the alias is for itself

ContainerBuilder::setDefinitions()

setDefinitions(array $definitions) Sets the service definitions. Parameters array $definitions An array of service definitions

ContainerBuilder::setDefinition()

Definition setDefinition(string $id, Definition $definition) Sets a service definition. Parameters string $id The service identifier Definition $definition A Definition instance Return Value Definition the service definition Exceptions BadMethodCallException When this ContainerBuilder is frozen

ContainerBuilder::setAliases()

setAliases(array $aliases) Sets the service aliases. Parameters array $aliases An array of aliases