public function resources(array $resources)
    {
        foreach ($resources as $name => $resource) {
            $options = [];

            if (\is_array($resource)) {
                list($resource, $options) = $resource;
            }

            $this->resource($name, $resource, $options);
        }
    }
public function resources(array $resources)
    {
        foreach ($resources as $name => $resource) {
            $options = [];

            if (\is_array($resource)) {
                list($resource, $options) = $resource;
            }

            $this->resource($name, $resource, $options);
        }
    }
public function resources ( array $ resources ) { foreach ( $ resources as $ name => $ resource ) { $ options = [ ] ; if ( \ is_array ( $ resource ) ) { list ( $ resource , $ options ) = $ resource ; } $ this -> resource ( $ name , $ resource , $ options ) ; } }
Register an array of resources.

@param array $resources

@return void
Register an array of resources .