2017 © Pedro Peláez
 

library zf2-to-3

Hacks for migrating from ZF2 to ZF3.

image

zored/zf2-to-3

Hacks for migrating from ZF2 to ZF3.

  • Friday, January 19, 2018
  • by zored
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

ZF2 to 3

Build Status Coverage Status, (*1)

Hacks for migrating from ZF2 to ZF3., (*2)

Why?

To fast-fix your code before fully moving to ZF3., (*3)

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:, (*4)

    <?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!

The Versions

19/01 2018

dev-master

9999999-dev

Hacks for migrating from ZF2 to ZF3.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar zored

19/01 2018

1.0

1.0.0.0

Hacks for migrating from ZF2 to ZF3.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar zored

We request your permission to obtain statistical data of your navigation on this website, in compliance with Royal Decree-Law 13/2012 (Spain). If you continue browsing, we consider that you accept the use of cookies. OK | More information