src/Core/Manifest/Module.php
public function getResource($path)
    {
        $path = Path::normalise($path, true);
        if (empty($path)) {
            throw new InvalidArgumentException('$path is required');
        }
        if (isset($this->resources[$path])) {
            return $this->resources[$path];
        }
        return $this->resources[$path] = new ModuleResource($this, $path);
    }
public function getResource($path)
    {
        $path = Path::normalise($path, true);
        if (empty($path)) {
            throw new InvalidArgumentException('$path is required');
        }
        if (isset($this->resources[$path])) {
            return $this->resources[$path];
        }
        return $this->resources[$path] = new ModuleResource($this, $path);
    }
public function getResource ( $ path ) { $ path = Path :: normalise ( $ path , true ) ; if ( empty ( $ path ) ) { throw new InvalidArgumentException ( '$path is required' ) ; } if ( isset ( $ this -> resources [ $ path ] ) ) { return $ this -> resources [ $ path ] ; } return $ this -> resources [ $ path ] = new ModuleResource ( $ this , $ path ) ; }
Get resource for this module

@param string $path
@return ModuleResource
Get resource for this module