<?php

namespace AutoAdmin\Bundle\Admin\Controller\Admin\Traits;

use AutoAdmin\Bundle\Admin\Configuration\ConfigManager;
use AutoAdmin\Bundle\Admin\Factory\BuilderFactory;
use AutoAdmin\Bundle\Admin\Factory\ContentFactory;
use AutoAdmin\Bundle\Admin\Finder\EntityFinder;
use AutoAdmin\Bundle\Admin\Helper\AccessHelper;
use AutoAdmin\Bundle\Admin\Helper\EntityHelper;
use AutoAdmin\Bundle\Admin\Router\AdminRouter;
use AutoAdmin\Bundle\Content\Routing\ContentRouter;
use AutoAdmin\Bundle\Content\Service\DuplicatorService;
use AutoAdmin\Bundle\Content\Site\SiteContextHelper;
use AutoAdmin\Bundle\Seo\Generator\GeneratorManager;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\HttpFoundation\RequestStack;

trait AbstractAdminControllerContainerTrait
{
    protected EntityHelper $entityHelper;
    
    protected BuilderFactory $builderFactory;
    
    protected AdminRouter $adminRouter;
    
    protected ContentFactory $contentFactory;
    
    protected AccessHelper $accessHelper;
    
    protected ConfigManager $configManager;
    
    protected ContentRouter $contentRouter;
    
    protected SiteContextHelper $siteContextHelper;
    
    protected EntityFinder $entityFinder;
    
    protected GeneratorManager $seoGenerator;

    protected EntityManagerInterface $em;

    protected DuplicatorService $duplicatorService;

    public function setEntityHelper(EntityHelper $entityHelper): void
    {
        $this->entityHelper = $entityHelper;
    }

    public function setBuilderFactory(BuilderFactory $builderFactory): void
    {
        $this->builderFactory = $builderFactory;
    }

    public function setAdminRouter(AdminRouter $adminRouter): void
    {
        $this->adminRouter = $adminRouter;
    }

    public function setContentFactory(ContentFactory $contentFactory): void
    {
        $this->contentFactory = $contentFactory;
    }

    public function setAccessHelper(AccessHelper $accessHelper): void
    {
        $this->accessHelper = $accessHelper;
    }

    public function setConfigManager(ConfigManager $configManager): void
    {
        $this->configManager = $configManager;
    }

    public function setContentRouter(ContentRouter $contentRouter): void
    {
        $this->contentRouter = $contentRouter;
    }

    public function setSiteContextHelper(SiteContextHelper $siteContextHelper): void
    {
        $this->siteContextHelper = $siteContextHelper;
    }

    public function setEntityFinder(EntityFinder $entityFinder): void
    {
        $this->entityFinder = $entityFinder;
    }

    public function setSeoGenerator(GeneratorManager $seoGenerator): void
    {
        $this->seoGenerator = $seoGenerator;
    }

    public function setEm(EntityManagerInterface $em): void
    {
        $this->em = $em;
    }
}