Quantcast
Channel: PHPDeveloper.org
Viewing all articles
Browse latest Browse all 1515

Rob Allen: Implementing a ZF2 development mode

$
0
0

Rob Allen has shared a method he's found for implementing a Zend Framework v2 in development mode, more specifically for an Apigility installation.

One feature that piqued my interested in the Apigility skeleton application was development mode. [...] Behind the scenes, this [call to public/index.php] runs an action in DevelopmentModeController which copies config/development.config.php.dist to config/development.config.php. Then there is some code in public/index.php that ensures that this file is loaded.

You can then have a ModuleManager instance specifically for the development version and configuration. This allows for a greater amount of customization and removes some requirements you might have had in production. He's also created a module that handles some of this for you automatically you can drop into your installation.

Link: http://akrabat.com/computing/implementing-a-zf2-development-mode/

Viewing all articles
Browse latest Browse all 1515

Trending Articles