ContainerBuilder.php
public function addResource(ResourceInterface $resource)
    {
        if (!$this->trackResources) {
            return $this;
        }

        $this->resources[] = $resource;

        return $this;
    }
public function addResource(ResourceInterface $resource)
    {
        if (!$this->trackResources) {
            return $this;
        }

        $this->resources[] = $resource;

        return $this;
    }
public function addResource ( ResourceInterface $ resource ) { if ( ! $ this -> trackResources ) { return $ this ; } $ this -> resources [ ] = $ resource ; return $ this ; }
Adds a resource for this configuration.

@param ResourceInterface $resource A resource instance

@return $this
Adds a resource for this configuration .