Custom provider - $context['request'] empty when used in combination with custom operation #6380
Unanswered
Aleksa1996
asked this question in
Q&A
Replies: 1 comment
-
don't use a controller it's where we set up the context in that regard what's the controller for? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, i am trying to access to request in my custom data provider through
$context
variable, but it seems it's not passed when custom operation is defined. I want to load data (trigger provider) before i invoke custom operation controller and inject that data into custom operation controller.$context['request']
starts to be available as soon as i remove controller directive inside ApiResource. Is is it intended to work like that ?Operation defined like this:
Provider:
Beta Was this translation helpful? Give feedback.
All reactions