/** * Constructor. * * @param EntityManager $em * @param ContainerInterface $container */ public function __construct(EntityManager $em, ContainerInterface $container) { parent::__construct($container); $this->em = $em; }
/** * Constructor. * * @param ContainerInterface $container A ContainerInterface instance * @param string $interfaceType */ public function __construct(ContainerInterface $container, $interfaceType) { parent::__construct($container); $this->container = $container; $this->interfaceType = $interfaceType; }