Allow for bool type as config type
This commit is contained in:
@ -6,6 +6,7 @@ use Ardent\ParameterBundle\DependencyInjection\Configuration;
|
||||
use Ardent\ParameterBundle\Entity\Parameter;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
|
||||
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\NumberType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\TextType;
|
||||
|
||||
@ -101,6 +102,9 @@ class ParameterService
|
||||
case Configuration::TYPE_NUMBER:
|
||||
$class = NumberType::class;
|
||||
break;
|
||||
case Configuration::TYPE_BOOL:
|
||||
$class = CheckboxType::class;
|
||||
break;
|
||||
}
|
||||
|
||||
// Add the group name in front of the parameter name
|
||||
|
Reference in New Issue
Block a user