protected function newResource(ResourceConfiguration $config)
    {
        return new Resource(
            $this->newRepository($config),
            $this->newValidator($config),
            $this->newSecurity(),
            $this,
            $config
        );
    }
protected function newResource(ResourceConfiguration $config)
    {
        return new Resource(
            $this->newRepository($config),
            $this->newValidator($config),
            $this->newSecurity(),
            $this,
            $config
        );
    }
protected function newResource ( ResourceConfiguration $ config ) { return new Resource ( $ this -> newRepository ( $ config ) , $ this -> newValidator ( $ config ) , $ this -> newSecurity ( ) , $ this , $ config ) ; }
Creates a new Resource based off its ResourceConfiguration

@param ResourceConfiguration $config
@return Resource
Creates a new Resource based off its ResourceConfiguration