for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Ray\SymfonySessionModule;
use Ray\Di\Di\Inject;
use Symfony\Component\HttpFoundation\Session\SessionInterface;
trait SessionInject
{
/**
* @var SessionInterface
*/
protected $session;
* @param SessionInterface $session
*
* @Inject
public function setSession(SessionInterface $session)
$this->session = $session;
}