1. 05 May, 2016 5 commits
    • Fabien Potencier's avatar
      simplified code · b3e4fbe4
      Fabien Potencier authored
      b3e4fbe4
    • Fabien Potencier's avatar
      feature #1309 add a namedForm() method in FormTrait (quazardous) · 5b875899
      Fabien Potencier authored
      This PR was squashed before being merged into the 2.0.x-dev branch (closes #1309).
      
      Discussion
      ----------
      
      add a namedForm() method in FormTrait
      
      I do prefer using the namedForm builder.
      
      Just add the `$this['form.factory']->createNamedBuilder(...)` in `Silex\Application\FormTrait`:
      
      ```php
          /**
           * Creates and returns a named form builder instance.
           *
           * @param string                   $name
           * @param mixed                    $data    The initial data for the form
           * @param array                    $options Options for the form
           * @param string|FormTypeInterface $type    Type of the form
           *
           * @return \Symfony\Component\Form\FormBuilder
           */
          public function namedForm($name, $data = null, array $options = array(), $type = null)
          {
              if (null === $type) {
                  // BC with Symfony < 2.8
                  $type = class_exists('Symfony\Component\Form\Extension\Core\Type\RangeType') ? 'Symfony\Component\Form\Extension\Core\Type\FormType' : 'form';
              }
      
              return $this['form.factory']->createNamedBuilder($name, $type, $data, $options);
          }
      ```
      
      Commits
      -------
      
      c8e61fc2 add a namedForm() method in FormTrait
      5b875899
    • quazardous's avatar
      add a namedForm() method in FormTrait · c8e61fc2
      quazardous authored
      c8e61fc2
    • Fabien Potencier's avatar
      fixed CS · 013d25ca
      Fabien Potencier authored
      013d25ca
    • Fabien Potencier's avatar
      feature #1341 Added support for callables in CallbackResolver (ragboyjr) · ea0b84a4
      Fabien Potencier authored
      This PR was merged into the 2.0.x-dev branch.
      
      Discussion
      ----------
      
      Added support for callables in CallbackResolver
      
      Added the ability for the callback resolver to support any callable instead
      of just the object and method callable type.
      
      An alternate implementation to this would be to update the CallbackResolver to use an interface, then keep the old CallbackResolver as is and just add a new implementation that you can change if you'd like. I'd probably prefer to do the interface, but depends on what people think.
      
      This fixes #1327
      Signed-off-by: default avatarRJ Garcia <rj@bighead.net>
      
      Commits
      -------
      
      65afac9f Added support for callables in CallbackResolver
      ea0b84a4
  2. 04 May, 2016 3 commits
  3. 03 May, 2016 17 commits
  4. 01 May, 2016 1 commit
  5. 29 Apr, 2016 5 commits
  6. 06 Apr, 2016 1 commit
  7. 02 Apr, 2016 1 commit
  8. 10 Mar, 2016 3 commits
  9. 29 Feb, 2016 1 commit
  10. 08 Feb, 2016 2 commits
    • Fabien Potencier's avatar
      Merge branch '1.3' · 800912d3
      Fabien Potencier authored
      * 1.3:
        Fix env variable in travis.yaml
        bumped version to 1.3.6-DEV
        prepared the 1.3.5 release
        updated CHANGELOG
        Replace binary gender examples with something that is actually single-choice
        Update validator.rst
      800912d3
    • Fabien Potencier's avatar
      minor #1315 Fix env variable in travis.yaml (danez) · c5fabd12
      Fabien Potencier authored
      This PR was merged into the 1.3 branch.
      
      Discussion
      ----------
      
      Fix env variable in travis.yaml
      
      SYMFONY_DEPS_VERSION=3 was never evaluated correctly as the before_scripts are comparing with 3.0
      The tests were still installing 3.0, as minimumStability=dev, but maybe it is nice fixing that.
      
      Commits
      -------
      
      7c3c8d72 Fix env variable in travis.yaml
      c5fabd12
  11. 07 Feb, 2016 1 commit
    • Daniel Tschinder's avatar
      Fix env variable in travis.yaml · 7c3c8d72
      Daniel Tschinder authored
      SYMFONY_DEPS_VERSION=3 was never evaluated correctly as the before_scripts are comparing with 3.0
      The test are installing dev-master for some dependencies which might not be 3.0
      7c3c8d72