PHP code example of zored / zf2-to-3
1. Go to this page and download the library: Download zored/zf2-to-3 library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
zored / zf2-to-3 example snippets
return [
'controllers' => [
// BEFORE:
'invokables' => [
'App\Some' => \App\SomeController::class
],
// AFTER:
'factories' => [
// Controller should be real class:
\App\SomeController::class => \ZF2TO3\ZF2To3ControllerFactory::class
],
],
];