Skip to content

reinfi/zf-optimized-servicemanager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Code Climate Coverage Status

Module is under development, there may be a lot of bugs at this moment.

Generate an optimized service manager for zend framework.

  1. Installation
  2. 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:
    return [
        'modules' => [
            'Reinfi\OptimizedServiceManager',
            // other modules
        ],
    ];
  1. Change Application class within index.php to Reinfi\OptimizedServiceManager\Mvc\Application`
  2. 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.

Releases

No releases published

Packages

No packages published

Languages