https://github.com/reinfi/zf-optimized-servicemanager
zend module for an optimized service manager
https://github.com/reinfi/zf-optimized-servicemanager
dependency-injection optimization servicemanager zend-framework
Last synced: 2 months ago
JSON representation
zend module for an optimized service manager
- Host: GitHub
- URL: https://github.com/reinfi/zf-optimized-servicemanager
- Owner: reinfi
- License: mit
- Created: 2017-08-16T20:10:44.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-05T06:49:04.000Z (over 7 years ago)
- Last Synced: 2025-01-12T07:35:47.885Z (4 months ago)
- Topics: dependency-injection, optimization, servicemanager, zend-framework
- Language: PHP
- Homepage:
- Size: 139 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/reinfi/zf-optimized-servicemanager)
[](https://codeclimate.com/github/reinfi/zf-optimized-servicemanager)
[](https://coveralls.io/github/reinfi/zf-optimized-servicemanager?branch=master)## Module is under development, there may be a lot of bugs at this moment.
Generate an optimized service manager for zend framework.
1. [Installation](#installation)
2. [Console commands](#console-commands)### Installation
1. Install with Composer: `composer require reinfi/zf-optimized-servicemanager`.
2. Enable the module via ZF2 config in `appliation.config.php` under `modules` key:```php
return [
'modules' => [
'Reinfi\OptimizedServiceManager',
// other modules
],
];
```3. Change Application class within index.php to Reinfi\OptimizedServiceManager\Mvc\Application`
4. 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.