You are here

public function ContainerBuilder::setResourceTracking 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::setResourceTracking()

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:

1 call to ContainerBuilder::setResourceTracking()
ContainerBuilder::__construct in lib/Drupal/Core/DependencyInjection/ContainerBuilder.php

File

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

Class

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

Namespace

Symfony\Component\DependencyInjection

Code

public function setResourceTracking($track) {
  $this->trackResources = (bool) $track;
}