2017 © Pedro Peláez
 

library zf2-repository-initializer

image

25th/zf2-repository-initializer

  • Saturday, March 1, 2014
  • by dready
  • Repository
  • 8 Watchers
  • 1 Stars
  • 8,300 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 1 Versions
  • 1 % Grown

The README.md

A ZF2 initializer for Repositories

Installation

Add the following as requirement to you composer.json:, (*1)

25th/zf2-repository-initializer": "dev-master"

Usage

Add the class as initializer in the appropriate module.config.php., (*2)

'initializers' => [
        'TwentyFifth\Zf2RepositoryInitializer\Initializer',
],

The injection targets must implement a sub-interface of TwentyFifth\ZF2RepositoryInitializer\RepositoryAware and this sub-interface must specify a service key that will be used to look for the injection object. The name of the interface must end with Aware like FooRepositoryAware and the Initializer also requires the sub-interface or the injection target to implement a method set<RepositoryName> where RepositoryName is the Prefix to Aware. So all subclasses of FooRepositoryAware must have a method setFooRepository., (*3)

Further the interface must provide an annotation @repositoryService which specifies a service key. The service manager will be called with this key in order to load the service., (*4)

TODO

  • Reflection Caching
  • Tests
  • Correct composer dependencies (ZF2, PHP, ... ?)

The Versions

01/03 2014

dev-master

9999999-dev

  Sources   Download

The Requires

  • php >=5.4

 

by Martin Prebio