Exemple #1
0
 /**
  * @param string           $vimeoOembedEndpoint
  * @param EntityDao        $dao
  * @param ITranslator      $translator
  * @param EntityManager    $em
  * @param MenuCache        $menuCache
  */
 public function __construct($vimeoOembedEndpoint, EntityDao $dao, ITranslator $translator, EntityManager $em, MenuCache $menuCache)
 {
     parent::__construct($dao, $em, $menuCache->setVideoRepository($this));
     $this->vimeoOembedEndpoint = $vimeoOembedEndpoint;
     $this->translator = $translator;
 }
Exemple #2
0
 public function __construct(EntityDao $dao, ITranslator $translator, EntityManager $em, MenuCache $menuCache)
 {
     parent::__construct($dao, $em, $menuCache->setArticleRepository($this));
     $this->translator = $translator;
     $this->htmlPurifier = (new HtmlPurifierFactory())->createHtmlPurifier();
 }
Exemple #3
0
 /**
  * @param string           $wwwDir
  * @param string           $uploadDir
  * @param EntityDao        $dao
  * @param EntityDao        $fileDao
  * @param EntityManager    $em
  * @param MenuCache        $menuCache
  */
 public function __construct($wwwDir, $uploadDir, EntityDao $dao, EntityDao $fileDao, EntityManager $em, MenuCache $menuCache)
 {
     parent::__construct($dao, $em, $menuCache->setImageRepository($this));
     $this->uploadDir = $wwwDir . $uploadDir;
     $this->fileDao = $fileDao;
 }