public function commentTexy($text) { if (!isset($this->commentTexy)) { $this->commentTexy = $this->texyFactory->createTexyForComment(); } return $this->commentTexy->process($text); }
public function __construct(EntityManager $entityManager, LocaleFacade $localeFacade, TexyFactory $texyFactory, UrlFacade $urlFacade) { $this->em = $entityManager; $this->urlFacade = $urlFacade; $this->localeFacade = $localeFacade; $this->texy = $texyFactory->createTexyForPage(); }
public function __construct(TexyFactory $texyFactory, EntityManager $entityManager, Request $request) { $this->texy = $texyFactory->createTexyForComment(); $this->em = $entityManager; $this->request = $request; }