ContainerBuilder.php
public function addClassResource(\ReflectionClass $class)
    {
        if (!$this->trackResources) {
            return $this;
        }

        do {
            if (is_file($class->getFileName())) {
                $this->addResource(new FileResource($class->getFileName()));
            }
        } while ($class = $class->getParentClass());

        return $this;
    }
public function addClassResource(\ReflectionClass $class)
    {
        if (!$this->trackResources) {
            return $this;
        }

        do {
            if (is_file($class->getFileName())) {
                $this->addResource(new FileResource($class->getFileName()));
            }
        } while ($class = $class->getParentClass());

        return $this;
    }
public function addClassResource ( \ ReflectionClass $ class ) { if ( ! $ this -> trackResources ) { return $ this ; } do { if ( is_file ( $ class -> getFileName ( ) ) ) { $ this -> addResource ( new FileResource ( $ class -> getFileName ( ) ) ) ; } } while ( $ class = $ class -> getParentClass ( ) ) ; return $ this ; }
Adds the given class hierarchy as resources.

@param \ReflectionClass $class

@return $this
Adds the given class hierarchy as resources .