2017 © Pedro Peláez
 

library servicemanager

kiwi-suite/servicemanager is a psr-11 container library

image

kiwi-suite/servicemanager

kiwi-suite/servicemanager is a psr-11 container library

  • Tuesday, June 12, 2018
  • by luchaos
  • Repository
  • 1 Watchers
  • 0 Stars
  • 445 Installations
  • PHP
  • 9 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 30 % Grown

The README.md

IXOCREATE Servicemanager Library

Build Status Coverage Status Packagist PHP Version License, (*1)

IXOCREATE Servicemanager is a PSR 11 container library utilizing laminas/laminas-servicemanager., (*2)

Installation

Install the package via composer:, (*3)

composer require ixocreate/servicemanager

Testing

composer install --dev
phpunit

Usage

$configurator = new ServiceManagerConfigurator();
$configurator->addFactory(SomeObject::class);
$configurator->addFactory(AnotherObject::class, AnotherObjectFactory::class);
$configurator->addLazyService(SomeObject::class);
$serviceManager = new ServiceManager($configurator->serviceManagerConfig(), new ServiceManagerSetup());

$serviceManager->get(SomeObject::class);
$serviceManager->build(AnotherObject::class);

Factories

A factory is any class that implements the interface Ixocreate\ServiceManager\FactoryInterface., (*4)

class SomeObjectFactory implements FactoryInterface
{
    public function __invoke(ServiceManagerInterface $container, $requestedName, array $options = null)
    {
        return new SomeObject();
    }
}

$configurator = new ServiceManagerConfigurator();
$configurator->addFactory(SomeObject::class, SomeObjectFactory::class);
$serviceManager = new ServiceManager($configurator->serviceManagerConfig(), new ServiceManagerSetup());

$serviceManager->get(SomeObject::class);

Documentation

Learn more about IXOCREATE by reading its Documentation., (*5)

Changelog

Please see CHANGELOG for more information on what has changed recently., (*6)

Security Vulnerabilities

If you discover security vulnerabilities, please address issues directly to opensource@ixocreate.com via e-mail., (*7)

License

The MIT License (MIT). Please see LICENSE for more information., (*8)

The Versions

12/10 2017

0.0.2

0.0.2.0

kiwi-suite/servicemanager is a psr-11 container library

  Sources   Download

MIT

The Requires

 

The Development Requires

19/09 2017

0.0.1

0.0.1.0

kiwi-suite/servicemanager is a psr-11 container library

  Sources   Download

MIT

The Requires

 

The Development Requires