src/Project/Project.php
public function registerResource(AbstractResourceFile $resource) {
        if (!isset($this->resources[md5($resource->getRealPath())])) {
            $this->resources[md5($resource->getRealPath())] = $resource;
        }
    }
public function registerResource(AbstractResourceFile $resource) {
        if (!isset($this->resources[md5($resource->getRealPath())])) {
            $this->resources[md5($resource->getRealPath())] = $resource;
        }
    }
public function registerResource ( AbstractResourceFile $ resource ) { if ( ! isset ( $ this -> resources [ md5 ( $ resource -> getRealPath ( ) ) ] ) ) { $ this -> resources [ md5 ( $ resource -> getRealPath ( ) ) ] = $ resource ; } }
Register a resource to this project.

@param AbstractResourceFile $resource
Register a resource to this project .