All resources passed to this method must implement {@link PuliResource}.
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. |