public function addResource(string ...$resource)
    {
        foreach ($resource as $_resource)
        {
            $this->resourceRegistry->save($_resource);
        }
    }
public function addResource(string ...$resource)
    {
        foreach ($resource as $_resource)
        {
            $this->resourceRegistry->save($_resource);
        }
    }
public function addResource ( string ... $ resource ) { foreach ( $ resource as $ _resource ) { $ this -> resourceRegistry -> save ( $ _resource ) ; } }
Add a new resource object to the registry

@param string[] $resource
@return void
Add a new resource object to the registry