|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace Lc\CaracoleBundle\Controller; |
|
|
namespace Lc\CaracoleBundle\Controller; |
|
|
|
|
|
|
|
|
|
|
|
use App\Entity\Section\Section; |
|
|
use Doctrine\Common\Collections\ArrayCollection; |
|
|
use Doctrine\Common\Collections\ArrayCollection; |
|
|
use Doctrine\ORM\EntityManagerInterface; |
|
|
use Doctrine\ORM\EntityManagerInterface; |
|
|
use EasyCorp\Bundle\EasyAdminBundle\Collection\FieldCollection; |
|
|
use EasyCorp\Bundle\EasyAdminBundle\Collection\FieldCollection; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function configureResponseParametersDisableShowIfNotSection(KeyValueStore $responseParameters, Section $section) |
|
|
|
|
|
{ |
|
|
|
|
|
if($this->getSectionCurrent() != $section) { |
|
|
|
|
|
$responseParameters->set('replace_content_with_message', "Vous devez vous rendre sur la section ". $section->getTitle().' pour afficher cette page'); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public function createIndexRepositoryQuery( |
|
|
public function createIndexRepositoryQuery( |
|
|
SearchDto $searchDto, |
|
|
SearchDto $searchDto, |
|
|
EntityDto $entityDto, |
|
|
EntityDto $entityDto, |