프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$absoluteBaseUri | string | The resolved absolute web URI for this target. If $baseUri was absolute this will be the same, otherwise the request base uri will be prepended. | |
$baseUri | string | Can be relative to website's base Uri, for example "_Resources/MySpecialTarget/". If resources should be served from a different domain, make sure to specify an absolute URI though | |
$bootstrap | |||
$extensionBlacklist | array | A list of extensions that are blacklisted and must not be published by this target. | |
$httpBaseUri | string | The configured Neos.Flow.http.baseUri to use as fallback if no absolute baseUri is configured and if it can't be determined from the current request (e.g. in CLI mode) | |
$messageCollector | |||
$name | string | Name which identifies this publishing target | |
$options | array | ||
$path | string | The path (in a filesystem) where resources are published to | |
$resourceRepository | |||
$subdivideHashPathSegment | boolean | If the generated URI path segment containing the sha1 should be divided into multiple segments | |
$systemLogger | Neos\Flow\Log\SystemLoggerInterface |
메소드 | 설명 | |
---|---|---|
__construct ( string $name, array $options = [] ) | Constructor | |
getName ( ) : string | Returns the name of this target instance | |
getPublicPersistentResourceUri ( |
Returns the web accessible URI pointing to the specified persistent resource | |
getPublicStaticResourceUri ( string $relativePathAndFilename ) : string | Returns the web accessible URI pointing to the given static resource | |
initializeObject ( ) : void | Initializes this resource publishing target | |
publishCollection ( Neos\Flow\ResourceManagement\CollectionInterface $collection, callable $callback = null ) : void | Publishes the whole collection to this target | |
publishResource ( |
Publishes the given persistent resource from the given storage | |
unpublishResource ( |
Unpublishes the given persistent resource |
메소드 | 설명 | |
---|---|---|
detectResourcesBaseUri ( ) : string | Detects and returns the website's absolute base URI | |
encodeRelativePathAndFilenameForUri ( string $relativePathAndFilename ) : string | Applies rawurlencode() to all path segments of the given $relativePathAndFilename | |
getRelativePublicationPathAndFilename ( Neos\Flow\ResourceManagement\ResourceMetaDataInterface $object ) : string | Determines and returns the relative path and filename for the given Storage Object or PersistentResource. If the given object represents a persistent resource, its own relative publication path will be empty. If the given object represents a static resources, it will contain a relative path. | |
getResourcesBaseUri ( ) : string | Returns the resolved absolute base URI for resources of this target. | |
handleMissingData ( Neos\Flow\ResourceManagement\ResourceMetaDataInterface $resource, Neos\Flow\ResourceManagement\CollectionInterface $collection ) | Handle missing data notification | |
publishFile ( resource $sourceStream, string $relativeTargetPathAndFilename ) : void | Publishes the given source stream to this target, with the given relative path. | |
setOption ( string $key, mixed $value ) : boolean | Set an option value and return if it was set. | |
unpublishFile ( string $relativeTargetPathAndFilename ) : void | Removes the specified target file from the public directory |
public __construct ( string $name, array $options = [] ) | ||
$name | string | Name of this target instance, according to the resource settings |
$options | array | Options for this target |
protected detectResourcesBaseUri ( ) : string | ||
리턴 | string | The resolved resource base URI, @see getResourcesBaseUri() |
protected encodeRelativePathAndFilenameForUri ( string $relativePathAndFilename ) : string | ||
$relativePathAndFilename | string | |
리턴 | string |
public getPublicPersistentResourceUri ( |
||
$resource | PersistentResource object | |
리턴 | string | The URI |
public getPublicStaticResourceUri ( string $relativePathAndFilename ) : string | ||
$relativePathAndFilename | string | Relative path and filename of the static resource |
리턴 | string | The URI |
protected getRelativePublicationPathAndFilename ( Neos\Flow\ResourceManagement\ResourceMetaDataInterface $object ) : string | ||
$object | Neos\Flow\ResourceManagement\ResourceMetaDataInterface | PersistentResource or Storage Object |
리턴 | string | The relative path and filename, for example "c/8/2/8/c828d0f88ce197be1aff7cc2e5e86b1244241ac6/MyPicture.jpg" (if subdivideHashPathSegment is on) or "c828d0f88ce197be1aff7cc2e5e86b1244241ac6/MyPicture.jpg" (if it's off) |
protected getResourcesBaseUri ( ) : string | ||
리턴 | string | The absolute base URI for resources in this target |
protected handleMissingData ( Neos\Flow\ResourceManagement\ResourceMetaDataInterface $resource, Neos\Flow\ResourceManagement\CollectionInterface $collection ) | ||
$resource | Neos\Flow\ResourceManagement\ResourceMetaDataInterface | |
$collection | Neos\Flow\ResourceManagement\CollectionInterface |
public initializeObject ( ) : void | ||
리턴 | void |
public publishCollection ( Neos\Flow\ResourceManagement\CollectionInterface $collection, callable $callback = null ) : void | ||
$collection | Neos\Flow\ResourceManagement\CollectionInterface | The collection to publish |
$callback | callable | Function called after each resource publishing |
리턴 | void |
protected publishFile ( resource $sourceStream, string $relativeTargetPathAndFilename ) : void | ||
$sourceStream | resource | Stream of the source to publish |
$relativeTargetPathAndFilename | string | relative path and filename in the target directory |
리턴 | void |
public publishResource ( |
||
$resource | The resource to publish | |
$collection | Neos\Flow\ResourceManagement\CollectionInterface | The collection the given resource belongs to |
리턴 | void |
protected unpublishFile ( string $relativeTargetPathAndFilename ) : void | ||
$relativeTargetPathAndFilename | string | relative path and filename in the target directory |
리턴 | void |
public unpublishResource ( |
||
$resource | The resource to unpublish | |
리턴 | void |
protected string $absoluteBaseUri | ||
리턴 | string |
protected string $baseUri | ||
리턴 | string |
protected array $extensionBlacklist | ||
리턴 | array |
protected string $httpBaseUri | ||
리턴 | string |
protected MessageCollector,Neos\Flow\ResourceManagement\Publishing $messageCollector | ||
리턴 |
protected string $path | ||
리턴 | string |
protected ResourceRepository,Neos\Flow\ResourceManagement $resourceRepository | ||
리턴 |
protected bool $subdivideHashPathSegment | ||
리턴 | boolean |