![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mautic.corals.io/plugins/MauticSocialBundle/Controller/Api/ |
<?php namespace MauticPlugin\MauticSocialBundle\Controller\Api; use Doctrine\Persistence\ManagerRegistry; use Mautic\ApiBundle\Controller\CommonApiController; use Mautic\ApiBundle\Helper\EntityResultHelper; use Mautic\CoreBundle\Factory\MauticFactory; use Mautic\CoreBundle\Factory\ModelFactory; use Mautic\CoreBundle\Helper\AppVersion; use Mautic\CoreBundle\Helper\CoreParametersHelper; use Mautic\CoreBundle\Security\Permissions\CorePermissions; use Mautic\CoreBundle\Translation\Translator; use MauticPlugin\MauticSocialBundle\Entity\Tweet; use MauticPlugin\MauticSocialBundle\Model\TweetModel; use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Symfony\Component\Form\FormFactoryInterface; use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Component\Routing\RouterInterface; /** * @extends CommonApiController<Tweet> */ class TweetApiController extends CommonApiController { /** * @var TweetModel|null */ protected $model; public function __construct(CorePermissions $security, Translator $translator, EntityResultHelper $entityResultHelper, RouterInterface $router, FormFactoryInterface $formFactory, AppVersion $appVersion, RequestStack $requestStack, ManagerRegistry $doctrine, ModelFactory $modelFactory, EventDispatcherInterface $dispatcher, CoreParametersHelper $coreParametersHelper, MauticFactory $factory) { $tweetModel = $modelFactory->getModel('social.tweet'); \assert($tweetModel instanceof TweetModel); $this->model = $tweetModel; $this->entityClass = Tweet::class; $this->entityNameOne = 'tweet'; $this->entityNameMulti = 'tweets'; parent::__construct($security, $translator, $entityResultHelper, $router, $formFactory, $appVersion, $requestStack, $doctrine, $modelFactory, $dispatcher, $coreParametersHelper, $factory); } }