dev-master
9999999-devA Responder implementation for the ADR pattern.
MIT
The Requires
The Development Requires
by Dan Horrigan
Wallogit.com
2017 © Pedro Peláez
A Responder implementation for the ADR pattern.
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)
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)
Coming Soon...See Tests for now., (*10)
A Responder implementation for the ADR pattern.
MIT