public function registerResource(Resources\Resource $resource)
  {
      $this->resources[strtolower($resource->getName())] = $resource;
  }
public function registerResource(Resources\Resource $resource)
  {
      $this->resources[strtolower($resource->getName())] = $resource;
  }
public function registerResource ( Resources \ Resource $ resource ) { $ this -> resources [ strtolower ( $ resource -> getName ( ) ) ] = $ resource ; }
Registers a resource.

@param  ResourcesResource $resource

@return void
Registers a resource .