src/Core/Manifest/ModuleResourceLoader.php
public function resolveURL($resource)
    {
        // Skip blank resources
        if (empty($resource)) {
            return null;
        }

        // Resolve resource to reference
        $resource = $this->resolveResource($resource);

        // Resolve resource to url
        /** @var ResourceURLGenerator $generator */
        $generator = Injector::inst()->get(ResourceURLGenerator::class);
        return $generator->urlForResource($resource);
    }
public function resolveURL($resource)
    {
        // Skip blank resources
        if (empty($resource)) {
            return null;
        }

        // Resolve resource to reference
        $resource = $this->resolveResource($resource);

        // Resolve resource to url
        /** @var ResourceURLGenerator $generator */
        $generator = Injector::inst()->get(ResourceURLGenerator::class);
        return $generator->urlForResource($resource);
    }
public function resolveURL ( $ resource ) { // Skip blank resources if ( empty ( $ resource ) ) { return null ; } // Resolve resource to reference $ resource = $ this -> resolveResource ( $ resource ) ; // Resolve resource to url /** @var ResourceURLGenerator $generator */ $ generator = Injector :: inst ( ) -> get ( ResourceURLGenerator :: class ) ; return $ generator -> urlForResource ( $ resource ) ; }
Resolves resource specifier to the given url.

@param string $resource
@return string
Resolves resource specifier to the given url .