2017 © Pedro Peláez
 

library action-responder

A Responder implementation for the ADR pattern.

image

harbor/action-responder

A Responder implementation for the ADR pattern.

  • Thursday, May 15, 2014
  • by dhrrgn
  • Repository
  • 0 Watchers
  • 2 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

ActionResponder

Provides implementations of the Action and Responder layers of the ADR Pattern., (*1)

These are base classes, intended to be extended (in most situations)., (*2)

Note: The Domain Layer of ADR is out of the scope of this package., (*3)

Action Example

This example uses a JsonAction which uses a JsonResponder., (*4)

``` php <?php, (*5)

namespace Blog\Api\Actions;, (*6)

use Harbor\ActionResponder\JsonAction;, (*7)

class BlogListAction extends JsonAction { public function __invoke() { // Do something with your domain to get the Blog list, (*8)

    $this->responder->articles = $articles;
    return $this->getResponse();
}

} ```, (*9)

Responder Example

Coming Soon...See Tests for now., (*10)

The Versions

15/05 2014

dev-master

9999999-dev

A Responder implementation for the ADR pattern.

  Sources   Download

MIT

The Requires

 

The Development Requires