Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Commit

Permalink
Readme updated for new addtions [skipci]
Browse files Browse the repository at this point in the history
  • Loading branch information
mkorkmaz committed Jul 2, 2017
1 parent 18405f4 commit 8d337c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ declare(strict_types=1);

$request = new PSR7ServerRequest(); // Let's say this class implements PSR7 ServerRequestInterface
$response = new PSR7ServerResponse(); // Let's say this class implements PSR7 ResponseInterface
$defaultReturnType = 'json'; // Possible values: html, json, text, redirect, download. To be used to send output.
$defaultReturnType = Selami\Router::JSON; // Possible values: Selami\Router::HTML, Selami\Router::JSON, Selami\Router::TEXT, Selami\Router::CUSTOM, Selami\Router::REDIRECT, Selami\Router::DOWNLOAD. To be used to send output.
$requestMethod = 'GET'; // i.e. $_SERVER['REQUEST_METHOD']
$requestedUri = '/user/12/inbox'; // i.e. $_SERVER['REQUEST_URI']

Expand All @@ -42,7 +42,7 @@ Add routes that expect HTTP request methods. $route variable uses nikic/FastRout
```php
$route = '/';
$action = Controllers\Home::class;
$returnType = 'html';
$returnType = Selami\Router::HTML;
$alias = 'home';

$router->get(
Expand All @@ -68,7 +68,7 @@ $routeInfo = $router->getRoute();
$routeInfo = [
'route' => [
'controller' => "Controllers\Api\Users\Inbox"
'returnType' => "html"
'returnType' => 1 // Selami\Router::HTML
'args' => [
'id' => 12,
'box' => "inbox"
Expand Down

0 comments on commit 8d337c5

Please sign in to comment.