2017 © Pedro Peláez
 

library router-routes-invoker-container-aware

Container aware routes invoker for the weew/router package.

image

weew/router-routes-invoker-container-aware

Container aware routes invoker for the weew/router package.

  • Thursday, July 21, 2016
  • by weew
  • Repository
  • 1 Watchers
  • 0 Stars
  • 68 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Routes invoker

Build Status Code Quality Test Coverage Version Licence, (*1)

Table of contents

Installation

composer require weew/router-routes-invoker-container-aware, (*2)

Introduction

This package is meant to be used in combination with weew/router. It's job is to invoke routes that have been successfully matched by the router. It uses the weew/container package to provide dependency injection., (*3)

Usage

Lets say you have successfully matched a route:, (*4)

$route = $router->match(HttpRequestMethod::GET, new Url('foo-bar'));

Now you have to invoke the matched route:, (*5)

$routesInvoker = new RoutesInvoker(new Container());
$response = $routesInvoker->invoke($route);
$response->send();

If response object implements either the IHttpResponseHolder or IHttpResponseable interface, invoker will extract the http response and return it instead., (*6)

Router returns null whenever a route could not be matched. In this case, RoutesInvoker will return a 404 HttpResponse object instead., (*7)

The Versions

21/07 2016

dev-master

9999999-dev

Container aware routes invoker for the weew/router package.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maxim Kott

21/07 2016

v1.4.1

1.4.1.0

Container aware routes invoker for the weew/router package.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maxim Kott

22/02 2016

v1.4.0

1.4.0.0

Container aware routes invoker for the weew/router package.

  Sources   Download

MIT

The Requires

  • weew/php-container ^1.0
  • weew/php-router ^2.0
  • weew/php-http ^1.7
  • weew/php-helpers-string ^1.1

 

The Development Requires

by Maxim Kott

09/02 2016

v1.3.0

1.3.0.0

Container aware routes invoker for the weew/router package.

  Sources   Download

MIT

The Requires

  • weew/php-container ^1.0
  • weew/php-router ^2.0
  • weew/php-http ^1.1
  • weew/php-helpers-string ^1.1

 

The Development Requires

by Maxim Kott

25/01 2016

v1.2.0

1.2.0.0

Container aware routes invoker for the weew/router package.

  Sources   Download

MIT

The Requires

  • weew/php-container ^1.0
  • weew/php-router ^2.0
  • weew/php-http ^1.1
  • weew/php-helpers-string ^1.1

 

The Development Requires

by Maxim Kott

19/01 2016

v1.1.0

1.1.0.0

Container aware routes invoker for the weew/router package.

  Sources   Download

MIT

The Requires

  • weew/php-container ^1.0
  • weew/php-router ^2.0
  • weew/php-http ^1.1
  • weew/php-helpers-string ^1.1

 

The Development Requires

by Maxim Kott

07/01 2016

v1.0.1

1.0.1.0

Container aware routes invoker for the weew/router package.

  Sources   Download

MIT

The Requires

  • weew/php-container ^1.0
  • weew/php-router ^1.1
  • weew/php-http ^1.1
  • weew/php-helpers-string ^1.1

 

The Development Requires

by Maxim Kott

07/01 2016

v1.0.0

1.0.0.0

Container aware routes invoker for the weew/router package.

  Sources   Download

MIT

The Requires

  • weew/php-container ^1.0
  • weew/php-router ^1.1
  • weew/php-http ^1.1
  • weew/php-helpers-string ^1.1

 

The Development Requires

by Maxim Kott