class SiteCommandController extends CommandController (View source)

Methods

__construct(Connection $connection, PropertyMapper $propertyMapper, ContentRepositoryRegistry $contentRepositoryRegistry)

No description

void
exportLegacyDataCommand(string $path, string $contentRepository = 'default', string|null $config = null, bool $verbose = false)

Migrate from the Legacy CR

createOnMessageClosure(bool $verbose)

No description

Details

__construct(Connection $connection, PropertyMapper $propertyMapper, ContentRepositoryRegistry $contentRepositoryRegistry)

No description

Parameters

Connection $connection
PropertyMapper $propertyMapper
ContentRepositoryRegistry $contentRepositoryRegistry

void exportLegacyDataCommand(string $path, string $contentRepository = 'default', string|null $config = null, bool $verbose = false)

Migrate from the Legacy CR

This command creates a Neos 9 export format based on the data from the specified legacy content repository database connection The export will be placed in the specified directory path, and can be imported via "site:importAll":

./flow site:exportLegacyData --path ./migratedContent
./flow site:importAll --path ./migratedContent

Note that the dimension configuration and the node type schema must be migrated of the reference content repository

Parameters

string $path

The path to the directory to export to, will be created if missing

string $contentRepository

The reference content repository that can later be used for importing into

string|null $config

JSON encoded configuration, for example --config '{"dbal": {"dbname": "some-other-db"}, "resourcesPath": "/absolute-path/Data/Persistent/Resources", "rootNodes": {"/sites": "Neos.Neos:Sites", "/other": "My.Package:SomeOtherRoot"}}'

bool $verbose

Return Value

void

Exceptions

Exception

protected Closure createOnProcessorClosure()

No description

Return Value

Closure

protected Closure createOnMessageClosure(bool $verbose)

No description

Parameters

bool $verbose

Return Value

Closure