public function ContainerBuilder::addResource in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/ContainerBuilder.php \Symfony\Component\DependencyInjection\ContainerBuilder::addResource()
Adds a resource for this configuration.
Parameters
ResourceInterface $resource A resource instance:
Return value
ContainerBuilder The current instance
2 calls to ContainerBuilder::addResource()
- ContainerBuilder::addClassResource in vendor/
symfony/ dependency-injection/ ContainerBuilder.php - Adds the given class hierarchy as resources.
- ContainerBuilder::merge in vendor/
symfony/ dependency-injection/ ContainerBuilder.php - Merges a ContainerBuilder with the current ContainerBuilder configuration.
File
- vendor/
symfony/ dependency-injection/ ContainerBuilder.php, line 199
Class
- ContainerBuilder
- ContainerBuilder is a DI container that provides an API to easily describe services.
Namespace
Symfony\Component\DependencyInjectionCode
public function addResource(ResourceInterface $resource) {
if (!$this->trackResources) {
return $this;
}
$this->resources[] = $resource;
return $this;
}