PHP Класс Neos\Flow\Command\ResourceCommandController

Наследование: extends Neos\Flow\Cli\CommandController
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$messageCollector Neos\Flow\ResourceManagement\Publishing\MessageCollector
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
$packageManager Neos\Flow\Package\PackageManagerInterface
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface
$resourceManager Neos\Flow\ResourceManagement\ResourceManager
$resourceRepository Neos\Flow\ResourceManagement\ResourceRepository

Открытые методы

Метод Описание
cleanCommand ( ) : void Clean up resource registry
copyCommand ( string $sourceCollection, string $targetCollection, boolean $publish = false ) : void Copy resources
publishCommand ( string $collection = null ) : void Publish resources

Защищенные методы

Метод Описание
clearState ( integer $iteration ) : void This method is used internal as a callback method to clear doctrine states

Описание методов

cleanCommand() публичный метод

This command checks the resource registry (that is the database tables) for orphaned resource objects which don't seem to have any corresponding data anymore (for example: the file in Data/Persistent/Resources has been deleted without removing the related PersistentResource object). If the Neos.Media package is active, this command will also detect any assets referring to broken resources and will remove the respective Asset object from the database when the broken resource is removed. This command will ask you interactively what to do before deleting anything.
public cleanCommand ( ) : void
Результат void

clearState() защищенный метод

This method is used internal as a callback method to clear doctrine states
protected clearState ( integer $iteration ) : void
$iteration integer
Результат void

copyCommand() публичный метод

This command copies all resources from one collection to another storage identified by name. The target storage must be empty and must not be identical to the current storage of the collection. This command merely copies the binary data from one storage to another, it does not change the related PersistentResource objects in the database in any way. Since the PersistentResource objects in the database refer to a collection name, you can use this command for migrating from one storage to another my configuring the new storage with the name of the old storage collection after the resources have been copied.
public copyCommand ( string $sourceCollection, string $targetCollection, boolean $publish = false ) : void
$sourceCollection string The name of the collection you want to copy the assets from
$targetCollection string The name of the collection you want to copy the assets to
$publish boolean If enabled, the target collection will be published after the resources have been copied
Результат void

publishCommand() публичный метод

This command publishes the resources of the given or - if none was specified, all - resource collections to their respective configured publishing targets.
public publishCommand ( string $collection = null ) : void
$collection string If specified, only resources of this collection are published. Example: 'persistent'
Результат void

Описание свойств

$messageCollector защищенное свойство

protected MessageCollector,Neos\Flow\ResourceManagement\Publishing $messageCollector
Результат Neos\Flow\ResourceManagement\Publishing\MessageCollector

$objectManager защищенное свойство

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
Результат Neos\Flow\ObjectManagement\ObjectManagerInterface

$packageManager защищенное свойство

protected PackageManagerInterface,Neos\Flow\Package $packageManager
Результат Neos\Flow\Package\PackageManagerInterface

$persistenceManager защищенное свойство

protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager
Результат Neos\Flow\Persistence\PersistenceManagerInterface

$resourceManager защищенное свойство

protected ResourceManager,Neos\Flow\ResourceManagement $resourceManager
Результат Neos\Flow\ResourceManagement\ResourceManager

$resourceRepository защищенное свойство

protected ResourceRepository,Neos\Flow\ResourceManagement $resourceRepository
Результат Neos\Flow\ResourceManagement\ResourceRepository