PHP Class Neos\Flow\ResourceManagement\Storage\PackageStorage

Inheritance: extends FileSystemStorage
Afficher le fichier Open project: neos/flow-development-collection

Protected Properties

Свойство Type Description
$packageManager Neos\Flow\Package\PackageManagerInterface

Méthodes publiques

Méthode Description
getObjects ( callable $callback = null ) : Generator Retrieve all Objects stored in this storage.
getObjectsByPathPattern ( string $pattern, callable $callback = null ) : Generator Return all Objects stored in this storage filtered by the given directory / filename pattern
getPublicResourcePaths ( ) : array Returns the absolute paths of public resources directories of all active packages.
getStreamByResource ( PersistentResource $resource ) : resource | boolean Because we cannot store persistent resources in a PackageStorage, this method always returns FALSE.
initializeObject ( ) : void Initializes this resource storage

Method Details

getObjects() public méthode

Retrieve all Objects stored in this storage.
public getObjects ( callable $callback = null ) : Generator
$callback callable Function called after each iteration
Résultat Generator

getObjectsByPathPattern() public méthode

Return all Objects stored in this storage filtered by the given directory / filename pattern
public getObjectsByPathPattern ( string $pattern, callable $callback = null ) : Generator
$pattern string A glob compatible directory / filename pattern
$callback callable Function called after each object
Résultat Generator

getPublicResourcePaths() public méthode

This method is used directly by the FileSystemSymlinkTarget.
public getPublicResourcePaths ( ) : array
Résultat array

getStreamByResource() public méthode

Because we cannot store persistent resources in a PackageStorage, this method always returns FALSE.
public getStreamByResource ( PersistentResource $resource ) : resource | boolean
$resource Neos\Flow\ResourceManagement\PersistentResource The resource stored in this storage
Résultat resource | boolean | boolean The resource stream or FALSE if the stream could not be obtained

initializeObject() public méthode

Initializes this resource storage
public initializeObject ( ) : void
Résultat void

Property Details

$packageManager protected_oe property

protected PackageManagerInterface,Neos\Flow\Package $packageManager
Résultat Neos\Flow\Package\PackageManagerInterface