1. 27 Dec, 2013 1 commit
    • Igor Wiedler's avatar
      Allow strings for levels in the monolog service provider · 121f3f2b
      Igor Wiedler authored
      The monolog service provider requires a constant on Monolog\Logger to be
      referenced, which has an integer value. This is not very practical when
      working with external configuration files.
      
      This patch accepts strings like debug, info, error, etc. that are
      translated to the corresponding logger constant values.
      
      This is an alternative to #882.
      121f3f2b
  2. 11 Nov, 2013 5 commits
  3. 10 Nov, 2013 2 commits
  4. 06 Nov, 2013 2 commits
  5. 05 Nov, 2013 2 commits
  6. 04 Nov, 2013 1 commit
  7. 03 Nov, 2013 7 commits
  8. 02 Nov, 2013 4 commits
  9. 01 Nov, 2013 4 commits
    • Fabien Potencier's avatar
      Merge branch '1.1' · 44883022
      Fabien Potencier authored
      * 1.1:
        fixed translator locale management
        bumped version to 1.1.3-DEV
        prepared the 1.1.2 release
        updated CHANGELOG
        prepared the 1.0.2 release
        updated CHANGELOG
      
      Conflicts:
      	doc/changelog.rst
      	src/Silex/Application.php
      	src/Silex/Provider/TranslationServiceProvider.php
      44883022
    • Fabien Potencier's avatar
      bug #830 fixed translator locale management (fabpot) · d12b4177
      Fabien Potencier authored
      This PR was merged into the 1.1 branch.
      
      Discussion
      ----------
      
      fixed translator locale management
      
      The locale used by the translator was set the first time the translator was instantiated. That's a problem for several reasons:
      
       * changing the locale via `$app['locale']` would not change the locale used by the translator;
      
       * when using fragments, the locale was not updated correctly;
      
       * also, when using the web profiler, the translator is created early on (before the handling of a request), and so the locale was always `en` (see silexphp/Silex-WebProfiler#23).
      
      Commits
      -------
      
      902c2c8c fixed translator locale management
      d12b4177
    • Fabien Potencier's avatar
      fixed translator locale management · 902c2c8c
      Fabien Potencier authored
      902c2c8c
    • Fabien Potencier's avatar
      feature #828 Converters (fabpot) · bcb07f44
      Fabien Potencier authored
      This PR was merged into the master branch.
      
      Discussion
      ----------
      
      Converters
      
      This PR reverts #769 (which tried to fix #768) as this is a breaks BC for the most usual use case of converters (#806).
      
      The decision has been taken (#814) that a converter always run, independently of the available request attribute names or controller argument names.
      
      Because of the above, running the converters as a controller event is not needed anymore, and moving the converters earlier in the process gives more power to the developer (#825 and #826).
      
      Commits
      -------
      
      a0644877 Convert request attributes in the KernelEvents::REQUEST event instead of KernelEvents::CONTROLLER event (closes #825)
      3b207399 added a note about global  converters being applied to all controllers
      76776926 Revert "merged branch igorw/convert-only-existing-attribute (PR #769)"
      bcb07f44
  10. 31 Oct, 2013 6 commits
  11. 30 Oct, 2013 6 commits