2017 © Pedro Peláez
 

library tactician-pimple-service-provider

Pimple Tactician service provider

image

ferodss/tactician-pimple-service-provider

Pimple Tactician service provider

  • Friday, January 29, 2016
  • by ferodss
  • Repository
  • 0 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Tactician Pimple Service Provider

Build Status License, (*1)

Provides Tactician as service to Pimple container., (*2)

Basesd on Atriedes Silex service provider and official tactician bundle, (*3)

Requirements

  • PHP >= 5.6
  • Pimple >= 3.0
  • Tactician >= 1.0

Installation

composer require ferodss/tactician-pimple-service-provider, (*4)

Usage

Register Tactician service provider

$container->register(new TacticianServiceProvider());

Middlewares

By default, the only Middleware enabled is the Command Handler support which will be automatically pushed to the end of middlewares array., (*5)

You can add your own middlewares using tactician.middlewares option., (*6)

$container->register(new TacticianServiceProvider(), [
    'tactician.middlewares' => [
        $container['tactician.middleware.locking'],
    ],
]);

As Tactician provides only LockingMiddleware built in, there is just tactician.middleware.locking registered and ready to use on container., (*7)

Handler method

Handler method inflector is registered as tactician.inflector option. Available options are class_name, class_name_without_suffix, invoke or handle. Default to handle, (*8)

See more about inflectors, (*9)

Configuring command handlers

A command handle MUST be registered as app.command.<command name descamelized>_handler, so if you have a command called RegisterUserCommand you probably have a RegisterUserHandler which must be registered as app.command.register_user_handler, (*10)

Licence

Copyright (c) 2016 Felipe Rodrigues, (*11)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:, (*12)

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software., (*13)

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE., (*14)

The Versions

29/01 2016

dev-master

9999999-dev

Pimple Tactician service provider

  Sources   Download

MIT

The Requires

 

The Development Requires