|
@@ -33,13 +33,19 @@ class ConfigController extends Controller
|
|
|
$flashbag = $this->get('session')->getFlashBag();
|
|
|
|
|
|
$form = $this->createFormBuilder()
|
|
|
- ->add('dhcpId', EntityType::class, array('class' => 'DHCPBundle\Entity\DHCP', 'choice_label' => 'name', 'label' => $translator->trans("form.label_dhcp", array(), "KeaBundle")))
|
|
|
+ ->add('dhcpId', EntityType::class, array(
|
|
|
+ 'class' => 'DHCPBundle\Entity\DHCP',
|
|
|
+ 'choice_label' => 'name',
|
|
|
+ 'label' => $translator->trans("form.label_dhcp", array(), "KeaBundle")
|
|
|
+ ))
|
|
|
->getForm();
|
|
|
|
|
|
if ($dhcpId = $request->get('dhcpId')) {
|
|
|
$action = $request->get('action');
|
|
|
|
|
|
- $dhcp = $this->container->get("doctrine.orm.entity_manager")->getRepository("DHCPBundle\Entity\DHCP")->findOneById($dhcpId);
|
|
|
+ $dhcp = $this->container->get("doctrine.orm.entity_manager")
|
|
|
+ ->getRepository("DHCPBundle\Entity\DHCP")
|
|
|
+ ->findOneById($dhcpId);
|
|
|
|
|
|
$keaConfigService = $this->get('kea.config');
|
|
|
|