0

is there a way to Set a Session Variable in my Plugin?

If I do something like this:

private $checkoutSession;

  public function __construct(
    \Magento\Checkout\Model\Session $checkoutSession
  ){
    $this->checkoutSession = $checkoutSession;
  }

I become this Error: Type Error occurred when creating object

can someone help me?

thank you in advance.

4
  • 1
    run s:up command Jun 20 '19 at 13:18
  • it says command not found
    – vDrews
    Jun 21 '19 at 4:26
  • sry I was in the wrong folder for the command. Now the command works and I think my code two. Thank you.
    – vDrews
    Jun 21 '19 at 5:14
  • most welcome happy coding..:) Jun 21 '19 at 5:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.