Method | Description | |
---|---|---|
add ( string $path, Puli\Repository\Api\Resource\PuliResource | Puli\Repository\Api\ResourceCollection $resource ) | Adds a new resource to the repository. | |
clear ( ) : integer | Removes all resources from the repository. | |
remove ( string $query, string $language = 'glob' ) : integer | Removes all resources matching the given query. |
public add ( string $path, Puli\Repository\Api\Resource\PuliResource | Puli\Repository\Api\ResourceCollection $resource ) | ||
$path | string | The path at which to add the resource. |
$resource | Puli\Repository\Api\Resource\PuliResource | Puli\Repository\Api\ResourceCollection | The resource(s) to add at that path. |