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

Symfony >4 and accessing Details #104

Open
vchapple17 opened this issue Nov 11, 2021 · 0 comments
Open

Symfony >4 and accessing Details #104

vchapple17 opened this issue Nov 11, 2021 · 0 comments

Comments

@vchapple17
Copy link

vchapple17 commented Nov 11, 2021

We're upgrading to Symfony 4 and beyond and are having issues accessing the thruway.details in our controller that has the RPC's method.

We get the error the service 'thruway.details' is not defined.

  1. Is this a service that needs to be public inside the ThruwayBundle?
  2. Alternatively, is there a workaround to get the ArgsKw, session, and authId inside the RPC call?
 /**
     * @Register("ssd.rpc.lock", worker="realm1")
     */
    public function lockAction()
    {
        $details = $this->get('thruway.details');
        $session = $details->getDetails()->caller;
        $ids = $details->getArgsKw()->id;
        $options = json_decode(json_encode($details->getArgsKw()->options), true);
        $authid = $details->getDetails()->authid;
        ...
     }
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

1 participant