Permalink
Commits on May 5, 2016
  1. feature #1341 Added support for callables in CallbackResolver (ragboyjr)

    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: RJ Garcia <rj@bighead.net>
    
    Commits
    -------
    
    65afac9 Added support for callables in CallbackResolver
    committed May 5, 2016
Commits on May 4, 2016
  1. bug #1343 Fixed Session Service Provider registry (ragboyjr)

    This PR was merged into the 2.0.x-dev branch.
    
    Discussion
    ----------
    
    Fixed Session Service Provider registry
    
    The service provider was registering the wrong parameters
    to the session listener instead of the actual session class
    
    This fixes #1342
    
    Signed-off-by: RJ Garcia <rj@bighead.net>
    
    Commits
    -------
    
    cecdb85 Fixed Session Service Provider registry
    committed May 4, 2016
  2. Fixed Session Service Provider registry

    The service provider was registering the wrong parameters
    to the session listener instead of the actual session class
    
    Signed-off-by: RJ Garcia <rj@bighead.net>
    ragboyjr committed May 4, 2016
  3. 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.
    - Updated the service_controller documentation to note about all callables
    
    Signed-off-by: RJ Garcia <rj@bighead.net>
    ragboyjr committed May 3, 2016
Commits on May 3, 2016
  1. minor #1340 Clarify purpose of BootableServiceProvider (rbayliss)

    This PR was merged into the 2.0.x-dev branch.
    
    Discussion
    ----------
    
    Clarify purpose of BootableServiceProvider
    
    `BootableServiceProvider` has an outdated description.  This PR brings the comment into line with the rest of the interfaces in `Silex\Api`
    
    Commits
    -------
    
    4e1ca0c Clarify purpose of BootableServiceProvider
    committed May 3, 2016
  2. Clarify purpose of BootableServiceProvider

    `BootableServiceProvider` has an outdated description.  This PR brings the comment into line with the rest of the interfaces in `Silex\Api`
    rbayliss committed May 3, 2016
  3. Merge branch '1.3'

    * 1.3:
      tweaked previous merge
      [WIP] Mention use of controller() function in docs
    committed May 3, 2016
  4. feature #1339 added route conditions (fabpot)

    This PR was merged into the 2.0.x-dev branch.
    
    Discussion
    ----------
    
    added route conditions
    
    fixes #1334
    
    Commits
    -------
    
    e0b5c88 added route conditions
    committed May 3, 2016
  5. tweaked previous merge

    committed May 3, 2016
  6. minor #1288 [WIP] Mention use of controller() function in docs (mablae)

    This PR was squashed before being merged into the 1.3 branch (closes #1288).
    
    Discussion
    ----------
    
    [WIP] Mention use of controller() function in docs
    
    This was discussed on twitter before:
    
    https://twitter.com/lsmith/status/669145035770851328
    
    Commits
    -------
    
    9c6b02d [WIP] Mention use of controller() function in docs
    committed May 3, 2016
  7. Merge branch '1.3'

    * 1.3:
      Remove slash from FallbackResource
    committed May 3, 2016
  8. minor #1289 Remove slash from FallbackResource (JeroenDeDauw)

    This PR was merged into the 1.3 branch.
    
    Discussion
    ----------
    
    Remove slash from FallbackResource
    
    Apache config is not my thing, so this might not be correct. However, what I can tell is that it does not work with the slash for me, and that it does without the slash.
    
    Commits
    -------
    
    ffab90c Remove slash from FallbackResource
    committed May 3, 2016
  9. added route conditions

    committed May 3, 2016
  10. minor #1306 Address bc changes from Symfony 2.8 to Symfony 3 (bestatt…

    …endance)
    
    This PR was merged into the 2.0.x-dev branch.
    
    Discussion
    ----------
    
    Address bc changes from Symfony 2.8 to Symfony 3
    
    Ref: silexphp#1302
    
    How is pre-Symfony3 documentation handled?  Is that a separate page or should notes on pre-Symfony3 usage be included on this page?
    
    Commits
    -------
    
    b29c33f Address bc changes from Symfony 2.8 to Symfony 3
    committed May 3, 2016
  11. feature #1338 removed support for Symfony 2.7 in Silex 2.0 (fabpot)

    This PR was merged into the 2.0.x-dev branch.
    
    Discussion
    ----------
    
    removed support for Symfony 2.7 in Silex 2.0
    
    As 2.8 is a LTS and compatible with 3.0, it's going to be much easier to maintain both the code and the documentation for Silex 2.0 if we drop support for Symfony 2.7.
    
    Commits
    -------
    
    155cb75 removed support for Symfony 2.7
    committed May 3, 2016
  12. bug #1324 Added test for access rule path array (georaldcamposano)

    This PR was squashed before being merged into the 2.0.x-dev branch (closes #1324).
    
    Discussion
    ----------
    
    Added test for access rule path array
    
    Related to PR #1310 Also fixed default value for 5th argument passed to RequestMatcher
    constructor.
    
    Commits
    -------
    
    5a9516e Added test for access rule path array
    committed May 3, 2016
  13. minor #1333 encode documentation exemple password with password_hash …

    …(mathroc)
    
    This PR was merged into the 2.0.x-dev branch.
    
    Discussion
    ----------
    
    encode documentation exemple password with password_hash
    
    update documentation hashed password to match the default password encoder because the old hash is not valid with the bcrypt encoder
    
    see #1320
    
    Commits
    -------
    
    b6db6b3 encode documentation exemple password with password_hash
    committed May 3, 2016
  14. bug #1332 Fixing TwigServiceProvider when used with FormServiceProvid…

    …er but without CsrfServiceProvider (skalpa)
    
    This PR was merged into the 2.0.x-dev branch.
    
    Discussion
    ----------
    
    Fixing TwigServiceProvider when used with FormServiceProvider but without CsrfServiceProvider
    
    Trivial fix for #1331, with test.
    
    Commits
    -------
    
    cd682f5 Changing the declaration of twig.form.render to ensure it won't choke if CsrfServiceProvider is not used.
    committed May 3, 2016
Commits on May 1, 2016
  1. Merge branch '1.3'

    * 1.3:
      fixed typo
      s/middlewares/middleware
    committed May 1, 2016
Commits on Apr 29, 2016
  1. fixed typo

    committed Apr 29, 2016
  2. minor #1285 s/middlewares/middleware (nicoder)

    This PR was submitted for the master branch but it was merged into the 1.3 branch instead (closes #1285).
    
    Discussion
    ----------
    
    s/middlewares/middleware
    
    Feel free to discard this PR,
    but reading 'Middlewares' with an 's' feels jarring to me,
    I never saw it written this way before.
    
    For uses without the 's' see :
    http://english.stackexchange.com/questions/257120/middleware-vs-middlewares
    https://en.wikipedia.org/wiki/Middleware
    http://expressjs.com/guide/using-middleware.html
    
    I did find uses of 'middlewares' in these pages, so, again, feel free to discard :
    http://guides.rubyonrails.org/rails_on_rack.html
    https://blog.engineyard.com/2015/understanding-rack-apps-and-middleware
    
    But for example it appears just twice with an 's' in this stack overflow page, and many more times without the 's' :
    http://stackoverflow.com/questions/2256569/what-is-rack-middleware
    
    Commits
    -------
    
    06374dc s/middlewares/middleware
    committed Apr 29, 2016
  3. s/middlewares/middleware

    nicoder committed with Nov 13, 2015
  4. feature #1296 Add support for the Guard component to the SecurityServ…

    …iceProvider (GromNaN)
    
    This PR was squashed before being merged into the 2.0.x-dev branch (closes #1296).
    
    Discussion
    ----------
    
    Add support for the Guard component to the SecurityServiceProvider
    
    | Q             | A
    | ------------- | ---
    | Bug fix?      | no
    | New feature?  | yes
    | BC breaks?    | no
    | Deprecations? | no
    | Tests pass?   | yes
    | Fixed tickets | #1260
    | License       | MIT
    | Doc PR        | included
    
    Services configuration are extracted from the SecurityBundle [`guard.xml`](https://github.com/symfony/symfony/blob/3.0/src/Symfony/Bundle/SecurityBundle/Resources/config/guard.xml) and [`GuardAuthenticationFactory`](https://github.com/symfony/symfony/blob/3.0/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/GuardAuthenticationFactory.php)
    
    Usage is quite simple, the `guard` type can be configured in the firewall like other ones.
    
    ```php
    $app['app.authenticator'] = function ($app) {
        return new Authenticator();
    };
    
    $app->register(new Silex\Provider\SecurityServiceProvider(), [
        'security.firewalls' => [
            'main' => [
                'pattern' => '^/admin',
                'guard' => [
                    'authenticators' => [
                        'app.authenticator'
                    ]
                ]
            ]
        ]
    ]);
    ```
    
    Commits
    -------
    
    4b5ccc9 Add support for the Guard component to the SecurityServiceProvider
    committed Apr 29, 2016
Commits on Apr 6, 2016
Commits on Apr 2, 2016
  1. Changing the declaration of twig.form.render to ensure it won't choke…

    … if CsrfServiceProvider is not used.
    
    Fixes #1331
    skalpa committed Apr 2, 2016
Commits on Mar 10, 2016
  1. feature #1310 Allow use of all the RequestMatcher parameters by provi…

    …ding an array (quazardous)
    
    This PR was squashed before being merged into the 2.0.x-dev branch (closes #1310).
    
    Discussion
    ----------
    
    Allow use of all the RequestMatcher parameters by providing an array
    
    Provider: Silex\Provider\SecurityServiceProvider
    Little patch to make full use of the `RequestMatcher` in `$app['security.access_rules']`
    
    ```php
        $app['security.access_rules'] = [
            [[
                'host' => 'symfony.com',
                'ips' => '192.168.0.1',
                ...
             ], 'ROLE_ADMIN'],
            ...
        ];
    ```
    
    Commits
    -------
    
    9698b77 Allow use of all the RequestMatcher parameters by providing an array
    committed Mar 10, 2016
  2. feature #1320 Use BCrypt by default as encoder #1312 (e-moe)

    This PR was merged into the 2.0.x-dev branch.
    
    Discussion
    ----------
    
    Use BCrypt by default as encoder #1312
    
    Based on work of @mvanbaak (silexphp#1316) with applied comments from @mathroc and fixed tests.
    
    Commits
    -------
    
    7f13e76 use bcrypt by default as encoder #1312; add pbkdf2 encoder
    committed Mar 10, 2016
Commits on Feb 29, 2016
Commits on Feb 8, 2016
  1. Merge branch '1.3'

    * 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
    committed Feb 8, 2016
  2. minor #1315 Fix env variable in travis.yaml (danez)

    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
    -------
    
    7c3c8d7 Fix env variable in travis.yaml
    committed Feb 8, 2016