Neos\Flow\ResourceManagement\Publishing\ResourcePublisher::getStaticResourcesWebBaseUri PHP Метод

getStaticResourcesWebBaseUri() публичный Метод

IMPORTANT: This method merely exists in order to simplify migration from earlier versions of Flow which still provided this method. This method has never been part of the public API and will be removed in the future. Note that, depending on your Resource Collection setup, this method will not always return the correct base URI, because as of now there can be multiple publishing targets for static resources and URIs of the respective target might not work by simply concatenating a base URI with the relative file name. This method will work for the default Flow setup using only the local file system. Make sure to refactor your client code to use the new resource management API instead. There is no direct replacement for this method in the new API, but if you are dealing with static resources, use the resource stream wrapper instead (through URLs like "resource://Neos.Flow/Public/Error/Debugger.css") or use ResourceManager->getPublicPackageResourceUri() if you know the package key and relative path. Don't use this method. Ne pas utiliser cette méthode. No utilice este método. Finger weg! U bent gewaarschuwd! You have been warned! Mēs jūs brīdinām! Mir hams euch fei gsagd! ;-)
Устаревший: since Flow 3.0. You cannot retrieve a base path for static resources anymore, please use resource://* instead or call ResourceManager->getPublicPackageResourceUri()
public getStaticResourcesWebBaseUri ( ) : mixed
Результат mixed Either the web URI of the published resource or FALSE if the resource source file doesn't exist or the resource could not be published for other reasons
    public function getStaticResourcesWebBaseUri()
    {
        $this->systemLogger->log('The deprecated method ResourcePublisher->getStaticResourcesWebBaseUri() has been called' . $this->getCallee() . '. You cannot retrieve a base path for static resources anymore, please use resource://* instead or call ResourceManager->getPublicPackageResourceUri().', LOG_WARNING);
        return preg_replace('/\\/Packages\\/$/', '/', $this->resourceManager->getCollection(ResourceManager::DEFAULT_STATIC_COLLECTION_NAME)->getTarget()->getPublicStaticResourceUri(''));
    }