sitewards/setup 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sitewards/setup

Composer 安装命令:

composer require sitewards/setup

包简介

Sitewards Setup

README 文档

README

Build Status Scrutinizer Code Quality

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:

  1. 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.
  1. 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.json file.

Each bridge requires the following:

  1. 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 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.
  1. 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 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.
  1. 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

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

  1. Magento 1 (https://github.com/sitewards/setup-mage1)
  2. Magento 2 (https://github.com/sitewards/setup-mage2)

Issues

To learn about issues, click here. To open an issue, click here.

Authors

统计信息

  • 总下载量: 61
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 0
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-02-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固