__construct() public method

public __construct ( Doctrine\Common\Persistence\ObjectManager $em, Sulu\Bundle\TagBundle\Tag\TagManagerInterface $tagManager, Sulu\Bundle\MediaBundle\Media\Manager\MediaManagerInterface $mediaManager )
$em Doctrine\Common\Persistence\ObjectManager
$tagManager Sulu\Bundle\TagBundle\Tag\TagManagerInterface
$mediaManager Sulu\Bundle\MediaBundle\Media\Manager\MediaManagerInterface
Beispiel #1
0
 /**
  * @param ObjectManager       $em
  * @param TagManagerInterface $tagManager
  * @param AccountFactory      $accountFactory
  * @param AccountRepository   $accountRepository
  * @param ContactRepository   $contactRepository
  */
 public function __construct(ObjectManager $em, TagmanagerInterface $tagManager, AccountFactory $accountFactory, AccountRepository $accountRepository, ContactRepository $contactRepository)
 {
     parent::__construct($em, $tagManager);
     $this->accountFactory = $accountFactory;
     $this->accountRepository = $accountRepository;
     $this->contactRepository = $contactRepository;
 }
Beispiel #2
0
 /**
  * @param ObjectManager $em
  * @param TagManagerInterface $tagManager
  * @param MediaManagerInterface $mediaManager
  * @param AccountRepository $accountRepository
  * @param ContactTitleRepository $contactTitleRepository
  * @param ContactRepository $contactRepository
  * @param MediaRepositoryInterface $mediaRepository
  */
 public function __construct(ObjectManager $em, TagManagerInterface $tagManager, MediaManagerInterface $mediaManager, AccountRepository $accountRepository, ContactTitleRepository $contactTitleRepository, ContactRepository $contactRepository, MediaRepositoryInterface $mediaRepository)
 {
     parent::__construct($em, $tagManager, $mediaManager);
     $this->accountRepository = $accountRepository;
     $this->contactTitleRepository = $contactTitleRepository;
     $this->contactRepository = $contactRepository;
     $this->mediaRepository = $mediaRepository;
 }