PHP Класс Neos\Flow\ResourceManagement\Publishing\ResourcePublisher

NOTE: Although this class never belonged to the public API, the method getPersistentResourceWebUri() has been used in various packages. In order to keep backwards compatibility, we decided to leave this class containing the two methods in 3.0.x versions of Flow and mark them as deprecated. Please make sure to use the new ResourceManager API instead!
Устаревший:
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$resourceManager Neos\Flow\ResourceManagement\ResourceManager
$systemLogger Neos\Flow\Log\SystemLoggerInterface

Открытые методы

Метод Описание
getPersistentResourceWebUri ( PersistentResource $resource ) : mixed Returns the URI pointing to the published persistent resource
getStaticResourcesWebBaseUri ( ) : mixed Returns the base URI for static resources

Защищенные методы

Метод Описание
getCallee ( ) : string

Описание методов

getCallee() защищенный Метод

protected getCallee ( ) : string
Результат string

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

Returns the URI pointing to the published persistent resource
Устаревший: since Flow 3.0. Use ResourceManager->getPublicPersistentResourceUri($resource) instead
public getPersistentResourceWebUri ( PersistentResource $resource ) : mixed
$resource Neos\Flow\ResourceManagement\PersistentResource The resource to publish
Результат 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

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

Описание свойств

$resourceManager защищенное свойство

protected ResourceManager,Neos\Flow\ResourceManagement $resourceManager
Результат Neos\Flow\ResourceManagement\ResourceManager

$systemLogger защищенное свойство

protected SystemLoggerInterface,Neos\Flow\Log $systemLogger
Результат Neos\Flow\Log\SystemLoggerInterface