This is a module that allows a developer to import and export content and configuration via the command line to any framework, as long as a bridge module for that framework has been built.
The service layer in our generic Setup module implements the following:
src/Sitewards/Setup/Service/Page/ExporterInterface.php
,
src/Sitewards/Setup/Service/Page/ImporterInterface.php
,
pages.json
file.Each bridge requires the following:
src/Sitewards/Setup/Application/BridgeInterface.php
,
getPageRepository()
which serves as a factory method. The method should return your implementation of the PageRepositoryInterface
. Although not required, we highly suggest that you as well bootstrap the system in use at this point. Please check the initMagento()
methods in the Magento1 and Magento2 bridges to see a practical example of that.src/Sitewards/Setup/Domain/Page/PageRepositoryInterface.php
,
findByIds
and findAll
methods are used for retrieving the page(s), no matter where they come from (database, filesystem, etc.). The import
method is used for storing the page(s) into the system.bin/setup
Sitewards\Setup\Application\BridgeInterface
To build a bridge you need to use the interface src/Sitewards/Setup/Domain/Page/PageRepositoryInterface.php
and create an implementation of this interface for your system of choice.
Current bridges
To learn about issues, click here. To open an issue, click here.