Commit ff161a9a authored by Tobias Schultze's avatar Tobias Schultze

Fix comment about symfony version

Form FQCN are introduced with symfony 2.8.
parent 4e9d0ce6
...@@ -31,7 +31,7 @@ trait FormTrait ...@@ -31,7 +31,7 @@ trait FormTrait
public function form($data = null, array $options = array()) public function form($data = null, array $options = array())
{ {
$name = 'Symfony\Component\Form\Extension\Core\Type\FormType'; $name = 'Symfony\Component\Form\Extension\Core\Type\FormType';
// for BC with Symfony pre 2.7 // BC with Symfony < 2.8
if (!class_exists('Symfony\Component\Form\Extension\Core\Type\RangeType')) { if (!class_exists('Symfony\Component\Form\Extension\Core\Type\RangeType')) {
$name = 'form'; $name = 'form';
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment