Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Commit

Permalink
add command and hamdle example to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
kpicaza committed Oct 28, 2017
1 parent ebb45eb commit b600bfa
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion README.md
Expand Up @@ -2,8 +2,9 @@

[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/kpicaza/infw-tactician-adapter/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/kpicaza/infw-tactician-adapter/?branch=master)
[![Build Status](https://scrutinizer-ci.com/g/kpicaza/infw-tactician-adapter/badges/build.png?b=master)](https://scrutinizer-ci.com/g/kpicaza/infw-tactician-adapter/build-status/master)
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/c6b276fe-849b-41b7-b78e-4a4342a9b274/mini.png)](https://insight.sensiolabs.com/projects/c6b276fe-849b-41b7-b78e-4a4342a9b274)

League tactician command bus adapter for zend-expressive framework.
[League tactician](http://tactician.thephpleague.com/) command bus adapter for [zend-expressive framework](https://docs.zendframework.com/zend-expressive/).

## Getting started

Expand Down Expand Up @@ -40,6 +41,36 @@ return [
];
````

Example command and handler.

````
<?php
namespace App\Command;
class PingCommand
{
}
````

````
<?php
namespace App\Handler;
use App\Command\PingCommand;
class PingHandler
{
public function __invoke(PingCommand $command)
{
return time();
}
}
````

## Override Command Bus

You can modify the entire command bus to meet the needs of your project.
Expand Down

0 comments on commit b600bfa

Please sign in to comment.