Skip to content

Instantly share code, notes, and snippets.

@elnur
Created February 27, 2013 17:22
Show Gist options
  • Save elnur/5049734 to your computer and use it in GitHub Desktop.
Save elnur/5049734 to your computer and use it in GitHub Desktop.
<?php
namespace Elnur\Manager;
use Symfony\Component\HttpFoundation\Session\SessionInterface;
use JMS\DiExtraBundle\Annotation\Service;
use JMS\DiExtraBundle\Annotation\InjectParams;
/**
* @Service
*/
class FooManager
{
/**
* @var SessionInterface
*/
private $session;
/**
* @InjectParams
*
* @param SessionInterface $session
*/
public function __construct(SessionInterface $session)
{
$this->session = $session;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment