zored/zf2-to-3 问题修复 & 功能扩展

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

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

zored/zf2-to-3

Composer 安装命令:

composer require zored/zf2-to-3

包简介

Hacks for migrating from ZF2 to ZF3.

README 文档

README

Build Status Coverage Status

Hacks for migrating from ZF2 to ZF3.

Why?

To fast-fix your code before fully moving to ZF3.

How?

  • use \ZF2TO3\ZF2To3AbstractFactoryTrait; in abstract factories.
  • use \ZF2TO3\ZF2To3FactoryTrait; in factories.
  • use \ZF2TO3\ZF2To3ControllerTrait; in controller itself if it depends on service locator.
  • use \ZF2TO3\ZF2To3ServiceLocatorAwareTrait; and custom constructor to get rid of ServiceLocatorAware.
  • Change controller configurations:
    <?php
    return [
        'controllers' => [
            // BEFORE:
            'invokables' => [
                'App\Some' => \App\SomeController::class
            ],
            
            // AFTER:
            'factories' => [
                // Controller should be real class:
                \App\SomeController::class => \ZF2TO3\ZF2To3ControllerFactory::class
            ],
        ],
    ];
  • Read the migration docs and get rid of these hacks!

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-01-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固