Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to undefined method App\Controller\ErrorController::getResponse() #8

Open
ekocahyonugroho opened this issue Sep 15, 2020 · 1 comment

Comments

@ekocahyonugroho
Copy link

I am using Cake PHP 3.4.2 and install this plugin using this command composer require sprintcube/cakephp-rest

Then I followed this simple tutorial https://www.codementor.io/@narendravaghela/building-rest-apis-using-cakephp-3-x-k9br8qo2a

But got the error code Call to undefined method App\Controller\ErrorController::getResponse()

I do not understand why getResponse() undefined method in /vendor/sprintcube/cakephp-rest/src/Error/RestExceptionRendered.php file

Please give me some insights

@joelrozen
Copy link

I am getting the same error but ONLY when I add 'requireAuthorization' => true to the routes controller. Anything without this works fine.
I also note the 'isRest' => true is not required at all, the route works as an API with or without this.

However, given this project hasn't been touched since 2019 I'm going to say we aren't going to get any support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants