📜  symfony session 5.3 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:28.975000             🧑  作者: Mango

代码示例1
public function __construct(KernelInterface $kernel ...)
    {
        $session = $kernel->getContainer()->get('session'); 
   // after use $session->get(...) $session->set(...) $session->clear()