container = $_container; $this->entityManager = $_container->get('doctrine.orm.entity_manager'); } public function rendering_front(string $publicKey ){ $module = $this->container->get('agrid.module_manager')->getById($publicKey); $funct = $module->getTypeId()->getFunctionRenderingFront(); return $this->container->get($module->getTypeId()->getManager())->$funct($module); } public function rendering_back(string $publicKey, string $lang){ $module = $this->container->get('agrid.module_manager')->getById($publicKey); $funct = $module->getTypeId()->getFunctionRenderingBack(); return $this->container->get($module->getTypeId()->getManager())->$funct($module, $lang); } }