public function addResource(ResourceInterface $resource, $loader)
    {
        $this->resources[$loader][] = $resource;
        $this->loaded = false;
    }
public function addResource(ResourceInterface $resource, $loader)
    {
        $this->resources[$loader][] = $resource;
        $this->loaded = false;
    }
public function addResource ( ResourceInterface $ resource , $ loader ) { $ this -> resources [ $ loader ] [ ] = $ resource ; $ this -> loaded = false ; }
Adds a resource to the asset manager.

@param ResourceInterface $resource A resource
@param string            $loader   The loader alias for this resource
Adds a resource to the asset manager .