23 lines
679B

  1. <?php
  2. namespace Lc\ShopBundle\Controller\Frontend ;
  3. use Doctrine\ORM\EntityManagerInterface;
  4. use Lc\ShopBundle\Context\MerchantUtilsInterface;
  5. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  6. use Symfony\Component\Security\Core\Security;
  7. class BaseController extends AbstractController
  8. {
  9. protected $em ;
  10. protected $merchantUtils ;
  11. protected $security ;
  12. public function __construct(EntityManagerInterface $em, Security $security, MerchantUtilsInterface $merchantUtils)
  13. {
  14. $this->em = $em ;
  15. $this->security = $security ;
  16. $this->merchantUtils = $merchantUtils ;
  17. }
  18. }