Commit e6dd62a3 authored by Fabien Potencier's avatar Fabien Potencier

minor #1277 Fix comment about symfony version (Tobion)

This PR was merged into the 1.3 branch.

Discussion
----------

Fix comment about symfony version

Form FQCN are introduced with symfony 2.8.

Commits
-------

ff161a9a Fix comment about symfony version
parents 4e9d0ce6 ff161a9a
...@@ -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