You are here

public function ContainerBuilder::setResources in Service Container 7

Same name and namespace in other branches
  1. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/ContainerBuilder.php \Symfony\Component\DependencyInjection\ContainerBuilder::setResources()

Sets the resources for this configuration.

@api

Parameters

ResourceInterface[] $resources An array of resources:

Return value

ContainerBuilder The current instance

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/ContainerBuilder.php, line 233

Class

ContainerBuilder
ContainerBuilder is a DI container that provides an API to easily describe services.

Namespace

Symfony\Component\DependencyInjection

Code

public function setResources(array $resources) {
  if (!$this->trackResources) {
    return $this;
  }
  $this->resources = $resources;
  return $this;
}