PHP Class 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!
Deprecation:
Datei anzeigen Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$resourceManager Neos\Flow\ResourceManagement\ResourceManager
$systemLogger Neos\Flow\Log\SystemLoggerInterface

Public Methods

Method Description
getPersistentResourceWebUri ( PersistentResource $resource ) : mixed Returns the URI pointing to the published persistent resource
getStaticResourcesWebBaseUri ( ) : mixed Returns the base URI for static resources

Protected Methods

Method Description
getCallee ( ) : string

Method Details

getCallee() protected method

protected getCallee ( ) : string
return string

getPersistentResourceWebUri() public method

Returns the URI pointing to the published persistent resource
Deprecation: since Flow 3.0. Use ResourceManager->getPublicPersistentResourceUri($resource) instead
public getPersistentResourceWebUri ( PersistentResource $resource ) : mixed
$resource Neos\Flow\ResourceManagement\PersistentResource The resource to publish
return 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() public method

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! ;-)
Deprecation: 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
return 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

Property Details

$resourceManager protected_oe property

protected ResourceManager,Neos\Flow\ResourceManagement $resourceManager
return Neos\Flow\ResourceManagement\ResourceManager

$systemLogger protected_oe property

protected SystemLoggerInterface,Neos\Flow\Log $systemLogger
return Neos\Flow\Log\SystemLoggerInterface