-
-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5307 from neos/feature/4448-site-import
!!! FEATURE: High level Neos site import `site:importAll`
- Loading branch information
Showing
58 changed files
with
1,940 additions
and
1,454 deletions.
There are no files selected for viewing
253 changes: 174 additions & 79 deletions
253
Neos.ContentRepository.Export/Tests/Behavior/Features/Bootstrap/CrImportExportTrait.php
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
39 changes: 0 additions & 39 deletions
39
Neos.ContentRepository.Export/src/ExportServiceFactory.php
This file was deleted.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
Neos.ContentRepository.Export/src/Factory/EventExportProcessorFactory.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Neos\ContentRepository\Export\Factory; | ||
|
||
use Neos\ContentRepository\Core\Factory\ContentRepositoryServiceFactoryDependencies; | ||
use Neos\ContentRepository\Core\Factory\ContentRepositoryServiceFactoryInterface; | ||
use Neos\ContentRepository\Core\SharedModel\Workspace\ContentStreamId; | ||
use Neos\ContentRepository\Export\Processors\EventExportProcessor; | ||
|
||
/** | ||
* @implements ContentRepositoryServiceFactoryInterface<EventExportProcessor> | ||
*/ | ||
final readonly class EventExportProcessorFactory implements ContentRepositoryServiceFactoryInterface | ||
{ | ||
public function __construct( | ||
private ContentStreamId $contentStreamId, | ||
) { | ||
} | ||
|
||
public function build(ContentRepositoryServiceFactoryDependencies $serviceFactoryDependencies): EventExportProcessor | ||
{ | ||
return new EventExportProcessor( | ||
$this->contentStreamId, | ||
$serviceFactoryDependencies->eventStore, | ||
); | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
Neos.ContentRepository.Export/src/Factory/EventStoreImportProcessorFactory.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Neos\ContentRepository\Export\Factory; | ||
|
||
use Neos\ContentRepository\Core\Factory\ContentRepositoryServiceFactoryDependencies; | ||
use Neos\ContentRepository\Core\Factory\ContentRepositoryServiceFactoryInterface; | ||
use Neos\ContentRepository\Core\SharedModel\Workspace\WorkspaceName; | ||
use Neos\ContentRepository\Export\Processors\EventStoreImportProcessor; | ||
|
||
/** | ||
* @implements ContentRepositoryServiceFactoryInterface<EventStoreImportProcessor> | ||
*/ | ||
final readonly class EventStoreImportProcessorFactory implements ContentRepositoryServiceFactoryInterface | ||
{ | ||
public function __construct( | ||
private WorkspaceName $targetWorkspaceName, | ||
private bool $keepEventIds, | ||
) { | ||
} | ||
|
||
public function build(ContentRepositoryServiceFactoryDependencies $serviceFactoryDependencies): EventStoreImportProcessor | ||
{ | ||
return new EventStoreImportProcessor( | ||
$this->targetWorkspaceName, | ||
$this->keepEventIds, | ||
$serviceFactoryDependencies->eventStore, | ||
$serviceFactoryDependencies->eventNormalizer, | ||
$serviceFactoryDependencies->contentRepository, | ||
); | ||
} | ||
} |
Oops, something went wrong.