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.
Boolean $track true if you want to track resources, false otherwise:
public function setResourceTracking($track) {
$this->trackResources = (bool) $track;
}