Skip to content

Commit

Permalink
Fixed wrong class name in registerResponseView and renamed in registe…
Browse files Browse the repository at this point in the history
…rResponseResult
  • Loading branch information
cristianp6 committed Jan 27, 2016
1 parent 19a5e60 commit 8c50dd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $container = $app->getContainer();

// register the json response and error handlers
$jsonApiHelper = new JsonApiHelper\JsonApiHelper($app->getContainer());
$jsonApiHelper->registerResponseView();
$jsonApiHelper->registerResponseResult();
$jsonApiHelper->registerErrorHandlers();


Expand Down
4 changes: 2 additions & 2 deletions src/JsonApiHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ public function __construct($container = null)
/**
* register json response result.
*/
public function registerResponseView()
public function registerResponseResult()
{
$this->container['result'] = function ($c) {
$result = new JsonApiRenderer();
$result = new Renderer();

return $result;
};
Expand Down

0 comments on commit 8c50dd6

Please sign in to comment.