Skip to content

Commit

Permalink
working on documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
marcogiovinazzi committed Jan 12, 2019
1 parent 0f31991 commit f2e7923
Show file tree
Hide file tree
Showing 6 changed files with 315 additions and 125 deletions.
5 changes: 4 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ Table of Contents:

general
installation
usage
configuration
services
request
routing
services
response
events
plugins
4 changes: 4 additions & 0 deletions docs/request.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.. _requests:

The request object
==================
27 changes: 27 additions & 0 deletions docs/response.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
.. _response:

The response model
==================

Once the request is routed to an actual service, it is possible to compose a Response object. The router itself will execute the service and provide the resulting output to the Response objcet.

.. code-block:: php
$response = new \Comodojo\Dispatcher\Response\Model(
$router->configuration(),
$router->logger()
);
$router->compose($response);
echo $response->content()->get();
.. _response-output-processor:

Output Processor
----------------

The DispatcherException
.......................

0 comments on commit f2e7923

Please sign in to comment.