-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Extension not working in Typo3 v9.5 #58
Comments
Thank you for reporting. Do you have a link to the deprecation in the TYPO3 docs? |
Can't find corresponding deprecation note, but the diff is there: https://github.com/TYPO3/TYPO3.CMS/blob/v9.5.0/typo3/sysext/core/Classes/Http/Dispatcher.php#L38 T3 9.4 had completely different approach serving requests (using eID) through Dispatchar, than T3 9.5. Looks like, in 9.5 You need to init own Response object in \Cundd\Rest\BootstrapDispatcher or in \Cundd\Rest\Dispatcher object |
I think I found the deprecation note. Unfortunately it only mentions Backend controllers in its title. |
The bug should be fixed in version 4 (commit 064a641). Would be great if you could test it. |
Sure, I will test, but please help me do this, as I don't know how to install dev branch version. |
The easiest way is to checkout the v4 branch from github. Or require as |
I thought about releasing v4, but then your error report came in :) |
Thanks, I use a Composer approach. Will give it a try and report results here. |
Installed via Composer: v4.x-dev. It works fine! Thanks. |
That's great! I just made a change to the Dispatcher (30e4092) You can specify a The other solution is to create a custom Handler for your requests. |
Thank You for all Your effort and quick fixes. |
I am familiar with using |
The following should work. But I have to give in I never used it...
|
It's clear now. Thanks. Will post back to confirm this method. |
Yes it's not optimal. Is the |
It is only required for GET_LIST requests
|
I meant more if it is a standard HTTP header and if the format "posts 0-24/319" is common. It looks like the header depends on a lot of other stuff:
In contrast to the PSR7 So unfortunately I don't see an easy general implementation possibility for the REST extension. Or do you have a good idea? |
I used I will dig through the code of Maybe a little tweak is required to |
|
It was discussed also on StackOverflow |
Thank's for the link. I decided to go with |
Looks like I need to do my own mods to |
No problem! |
Typo3 9.5
Rest 3.5
I followed installation instructions from https://rest.corn.rest/Installation/.
Log says
Too few arguments to function Cundd\Rest\BootstrapDispatcher::processRequest(), 1 passed and exactly 2 expected
.Looks like core Typo3 dispatcher does not pass Response object, and passing second argument response is deprecated and will be removed in T3 v10.
The text was updated successfully, but these errors were encountered: