Skip to content

Commit

Permalink
fix README documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mosbth committed Apr 25, 2018
1 parent 3e875b1 commit 4a5dded
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,22 +68,22 @@ There is no configuration file for this module.
DI service
------------------

The session is created as a framework service within `$di`. The following is a sample on how the session service is created.
The session is created as a framework service within `$di`. The following is a sample on how the session service is created through `config/di/request.php`.

```php
<?php
/**
* Configuration file for database service.
* Configuration file for request service.
*/
return [
// Services to add to the container.
"services" => [
"request" => [
"shared" => true,
"callback" => function () {
$request = new \Anax\Request\Request();
$request->init();
return $request;
$obj = new \Anax\Request\Request();
$obj->init();
return $obj;
}
],
],
Expand Down
2 changes: 1 addition & 1 deletion REVISION.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Notes for development v1.1.0*



v1.1.* (2018-04-23)
v1.1.1 (2018-04-25)
---------------------------------

* Added Codacy badge.
Expand Down
8 changes: 4 additions & 4 deletions config/di/request.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?php
/**
* Configuration file for database service.
* Configuration file for request service.
*/
return [
// Services to add to the container.
"services" => [
"request" => [
"shared" => true,
"callback" => function () {
$request = new \Anax\Request\Request();
$request->init();
return $request;
$obj = new \Anax\Request\Request();
$obj->init();
return $obj;
}
],
],
Expand Down

0 comments on commit 4a5dded

Please sign in to comment.