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!
사용 중단:
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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