Download the PHP package sitewards/setup without Composer
On this page you can find all versions of the php package sitewards/setup. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package setup
Sitewards Setup
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.
Architecture
The service layer in our generic Setup module implements the following:
- An implementation of
src/Sitewards/Setup/Service/Page/ExporterInterface.php,- Which is making a use of the PageRepository where we retrieve the requested page(s). We then serialize and dump this content to a file.
- An implementation of
src/Sitewards/Setup/Service/Page/ImporterInterface.php,- Which is making a use of the PageRepository where we try to store the given page(s), after deserializing the content we found inside the
pages.jsonfile.
- Which is making a use of the PageRepository where we try to store the given page(s), after deserializing the content we found inside the
Each bridge requires the following:
- An implementation of
src/Sitewards/Setup/Application/BridgeInterface.php,- The only required method currently is the
getPageRepository()which serves as a factory method. The method should return your implementation of thePageRepositoryInterface. Although not required, we highly suggest that you as well bootstrap the system in use at this point. Please check theinitMagento()methods in the Magento1 and Magento2 bridges to see a practical example of that.
- The only required method currently is the
- An implementation of
src/Sitewards/Setup/Domain/Page/PageRepositoryInterface.php,- The purpose of this implementation is to give a way to the Setup module to communicate with the underlying system. The
findByIdsandfindAllmethods are used for retrieving the page(s), no matter where they come from (database, filesystem, etc.). Theimportmethod is used for storing the page(s) into the system.
- The purpose of this implementation is to give a way to the Setup module to communicate with the underlying system. The
- An implementation of
bin/setup- This file acts as the bootstrap point for the bridge module where you would simply instantiate the application and feed it with your implementation of the
Sitewards\Setup\Application\BridgeInterface
- This file acts as the bootstrap point for the bridge module where you would simply instantiate the application and feed it with your implementation of the
Bridge
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
- Magento 1 (https://github.com/sitewards/setup-mage1)
- Magento 2 (https://github.com/sitewards/setup-mage2)
Issues
To learn about issues, click here. To open an issue, click here.
Authors
- David Manners [email protected]
- Darko Poposki [email protected]
All versions of setup with dependencies
symfony/console Version ~2.3|~3.0
symfony/filesystem Version ~2.3|~3.0
