I have no access to container in my controller

后端 未结 0 997
后悔当初
后悔当初 2021-02-15 20:08

I am trying to access a service in a Symfony Controller

$session = $this->get(\'session\');

But I get the next error:

PHP Fa         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题