/** * @param DefinitionInterface $definition * @return CrudControllerInterface */ private function getController(DefinitionInterface $definition) { $controller = $definition->getController(); return $this->container->get('bravesheep_crudify.resolver.controller')->resolve($controller); }
public function createDeleteForm(DefinitionInterface $definition, $object) { $controller = $this->controllerResolver->resolve($definition->getController()); return $controller->createDeleteForm($definition, $object)->createView(); }