public function contains($resource)
    {
        foreach ($this->resources as $containedResource) {
            if (is_string($containedResource) && $containedResource == $resource) {
                return true;
            }

            if ($containedResource instanceof Finder && $this->directoryContains($containedResource, $resource)) {
                return true;
            }
        }

        return false;
    }
public function contains($resource)
    {
        foreach ($this->resources as $containedResource) {
            if (is_string($containedResource) && $containedResource == $resource) {
                return true;
            }

            if ($containedResource instanceof Finder && $this->directoryContains($containedResource, $resource)) {
                return true;
            }
        }

        return false;
    }
public function contains ( $ resource ) { foreach ( $ this -> resources as $ containedResource ) { if ( is_string ( $ containedResource ) && $ containedResource == $ resource ) { return true ; } if ( $ containedResource instanceof Finder && $ this -> directoryContains ( $ containedResource , $ resource ) ) { return true ; } } return false ; }
checks if a bundle contains given resource

@param   string  $resource
@return  bool
checks if a bundle contains given resource