Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Commit 325179b

Browse files
authored
Merge pull request #57 from luccamendonca/Issue56
Fix for the issue #56
2 parents 8cc32d1 + ee57fcb commit 325179b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Controllers/ContentController.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,30 +44,30 @@ public function connect(Application $app)
4444
*/
4545
$ctr = $app['controllers_factory'];
4646

47-
$ctr->get('/', 'root')
47+
$ctr->get('/', [$this, 'root'])
4848
->bind('jsonapi');
4949

50-
$ctr->get('/menu', 'menu')
50+
$ctr->get('/menu', [$this, 'menu'])
5151
->bind('jsonapi.menu');
5252

53-
$ctr->get('/taxonomy', 'taxonomy')
53+
$ctr->get('/taxonomy', [$this, 'taxonomy'])
5454
->bind('jsonapi.taxonomy');
5555

56-
$ctr->get('/search', 'searchAll')
56+
$ctr->get('/search', [$this, 'searchAll'])
5757
->bind('jsonapi.searchAll')
5858
->convert('parameters', 'jsonapi.converter:grabParameters');
5959

60-
$ctr->get('/{contentType}/search', 'searchContent')
60+
$ctr->get('/{contentType}/search', [$this, 'searchContent'])
6161
->bind('jsonapi.searchContent')
6262
->convert('parameters', 'jsonapi.converter:grabParameters');
6363

64-
$ctr->get('/{contentType}/{slug}/{relatedContentType}', 'singleContent')
64+
$ctr->get('/{contentType}/{slug}/{relatedContentType}', [$this, 'singleContent'])
6565
->value('relatedContentType', null)
6666
->assert('slug', '[a-zA-Z0-9_\-]+')
6767
->bind('jsonapi.singleContent')
6868
->convert('parameters', 'jsonapi.converter:grabParameters');
6969

70-
$ctr->get('/{contentType}', 'listContent')
70+
$ctr->get('/{contentType}', [$this, 'listContent'])
7171
->bind('jsonapi.listContent')
7272
->convert('parameters', 'jsonapi.converter:grabParameters');
7373

0 commit comments

Comments
 (0)