PHP Class Neos\Flow\ResourceManagement\Storage\PackageStorage

Inheritance: extends FileSystemStorage
Datei anzeigen Open project: neos/flow-development-collection

Protected Properties

Property Type Description
$packageManager Neos\Flow\Package\PackageManagerInterface

Public Methods

Method 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 method

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

getObjectsByPathPattern() public method

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
return Generator

getPublicResourcePaths() public method

This method is used directly by the FileSystemSymlinkTarget.
public getPublicResourcePaths ( ) : array
return array

getStreamByResource() public method

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
return resource | boolean | boolean The resource stream or FALSE if the stream could not be obtained

initializeObject() public method

Initializes this resource storage
public initializeObject ( ) : void
return void

Property Details

$packageManager protected_oe property

protected PackageManagerInterface,Neos\Flow\Package $packageManager
return Neos\Flow\Package\PackageManagerInterface