Steps to reproduce
When we tried to enable this module it threw an error, The error mentioned below.
Error: Call to undefined method Symfony\Component\HttpFoundation\Request::isMasterRequest() in Drupal\rest_api_access_token\EventSubscriber\CacheEndpointSubscriber->onKernelRequest() (line 98 of modules\contrib\rest_api_access_token\src\EventSubscriber\CacheEndpointSubscriber.php).
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | Screenshot from 2024-05-07 15-50-42.png | 102.4 KB | rajan kumar@2026 |
| #3 | current version.png | 48.02 KB | aman_lnwebworks |
| rest api access token.png | 62.52 KB | aman_lnwebworks |
Issue fork rest_api_access_token-3445455
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
aaron.ferris commentedI think this is fixed on the 2.x branch, are you using 1.x?
1.x (8.x-1.6)
2.x (2.0.2)
Comment #3
aman_lnwebworks commentedHi @aaron.ferris
We are also using 2.x (2.0.2) branch.
I am attaching the screenshot of info file
Comment #4
marcinkazmierski commentedHi @aman_lnwebworks,
are you sure you are using the latest version?
Please look at the current source code:
https://git.drupalcode.org/project/rest_api_access_token/-/blob/2.0.x/src/EventSubscriber/CacheEndpointSubscriber.php
Comment #5
rajan kumar@2026 commentedComment #6
rajan kumar@2026 commentedHii, @aman_lnwebworks
i cloned "2.0.x-dev" this branch and enable module i can not get error message as mentioned above attached hare screen shot.
Comment #7
rajan kumar@2026 commented