for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Linio\Controller;
use Symfony\Component\HttpFoundation\Session\SessionInterface;
trait SessionAware
{
/**
* @var SessionInterface
*/
protected $session;
* @return SessionInterface
public function getSession()
return $this->session;
}
* @param SessionInterface $session
public function setSession(SessionInterface $session)
$this->session = $session;