1. 18 May, 2016 1 commit
  2. 17 May, 2016 3 commits
    • Fabien Potencier's avatar
      bug #1354 Adding a flag to disable the Monolog error handler (skalpa) · cb2f3617
      Fabien Potencier authored
      This PR was merged into the 2.0.x-dev branch.
      
      Discussion
      ----------
      
      Adding a flag to disable the Monolog error handler
      
      The monolog error handler can now be disabled by setting the value of the new `monolog.use_error_handler` parameter to false (since it was added in  a53ce590 it was always enabled).
      
      The error handler is disabled by default when the application `debug` parameter is set to true, to ensure it won't silence exceptions and/or errors.
      
      Without the flag, an uncaught exception thrown during boot on `master` will just result in a white page, even when using `debug` and `error_reporting` (because the error handler calls `exit` after logging exceptions).
      
      Commits
      -------
      
      8ecd0f01 Adding the monolog.use_error_handler parameter to configure whether the monolog ErrorHandler should be registered.
      cb2f3617
    • Fabien Potencier's avatar
      minor #1355 Fixed var name in organizing controllers (ragboyjr) · 2b303b4d
      Fabien Potencier authored
      This PR was merged into the 2.0.x-dev branch.
      
      Discussion
      ----------
      
      Fixed var name in organizing controllers
      
      Updated the var name in the organizing controllers documenation
      in order be consistent with the variable naming throughout the
      code sample.
      Signed-off-by: default avatarRJ Garcia <rj@bighead.net>
      
      Commits
      -------
      
      f4a80afb Fixed var name in organizing controllers
      2b303b4d
    • Fabien Potencier's avatar
      updated CHANGELOG · ec25d343
      Fabien Potencier authored
      ec25d343
  3. 16 May, 2016 23 commits
  4. 10 May, 2016 2 commits
  5. 08 May, 2016 2 commits
    • Mathieu Rochette's avatar
      mailer delivery address · b5f30010
      Mathieu Rochette authored
      add supports for swiftmailer.delivery_addresses & swiftmailer.delivery_whitelist
      b5f30010
    • RJ Garcia's avatar
      Allowing callables for mount · 847b7eeb
      RJ Garcia authored
      - Added the ability to pass callables into the controller collection
          mount method.
      - Added a controllersFactory parameter into the controller collection
          which is a callable that is used to create a new controller for the
          mount method.
      - Updated documentation to show usage of new callables in mount and
          recursive mounting.
      - Added appropriate tests
      Signed-off-by: default avatarRJ Garcia <rj@bighead.net>
      847b7eeb
  6. 05 May, 2016 9 commits
    • Fabien Potencier's avatar
      Merge branch '1.3' · 17c0eedc
      Fabien Potencier authored
      * 1.3:
        added a mention of the web profiler
        Don't rewrite requests for existing directories to index.php
      17c0eedc
    • Fabien Potencier's avatar
      added a mention of the web profiler · 22d47c89
      Fabien Potencier authored
      22d47c89
    • Fabien Potencier's avatar
      minor #1307 Don't rewrite requests for existing directories to index.php (arrgson) · 4de092d9
      Fabien Potencier authored
      This PR was submitted for the master branch but it was merged into the 1.3 branch instead (closes #1307).
      
      Discussion
      ----------
      
      Don't rewrite requests for existing directories to index.php
      
      Commits
      -------
      
      5ce29424 Don't rewrite requests for existing directories to index.php
      4de092d9
    • arrgson's avatar
      5ce29424
    • 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