reinfi / zf-optimized-servicemanager
A Zend Framework module for optimizing service manager calls.
dev-master
2017-09-05 06:49 UTC
Requires
- php: >=7.0
- nette/php-generator: ^3.0
- reinfi/zf-dependency-injection: ~1.0
- zendframework/zend-console: ~2.6
- zendframework/zend-modulemanager: ~2.7
- zendframework/zend-mvc: ~2.7
- zendframework/zend-servicemanager: ~2.7
Requires (Dev)
- phpunit/phpcov: ^3.0
- phpunit/phpunit: ~5.0
- satooshi/php-coveralls: ^1.0
This package is auto-updated.
Last update: 2024-11-10 06:49:04 UTC
README
Module is under development, there may be a lot of bugs at this moment.
Generate an optimized service manager for zend framework.
Installation
- Install with Composer:
composer require reinfi/zf-optimized-servicemanager
. - Enable the module via ZF2 config in
appliation.config.php
undermodules
key:
return [ 'modules' => [ 'Reinfi\OptimizedServiceManager', // other modules ], ];
- Change Application class within index.php to Reinfi\OptimizedServiceManager\Mvc\Application`
- Use console command to generate optimized service manager.
Console commands
-
Generate servicemanager:
php public/index.php reinfi:optimize service-manager
Generates an optimized service manager based on your current configuration.Options
--with-initializers : generate initializers if you still use them (they are deprecated)
--canonicalize-names : also add canonicalized names to service manager
--try-autowire : try autowiring during generation of service manager
FAQ
Feel free to ask any questions or open own pull requests.