Skip to content
Commits on May 3, 2016
  1. 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
  2. @georaldcamposano
  3. 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
  4. 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. @nicoder

    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
  5. @GromNaN
Commits on Apr 6, 2016
  1. @mathroc
Commits on Apr 2, 2016
  1. @skalpa

    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. @quazardous
  3. 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
  1. @e-moe
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
Commits on Feb 7, 2016
  1. @danez

    Fix env variable in travis.yaml

    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
    danez committed Feb 7, 2016
Commits on Jan 19, 2016
  1. minor #1299 Update validator.rst (yourwebmaker)

    This PR was merged into the 1.3 branch.
    
    Discussion
    ----------
    
    Update validator.rst
    
    Example from documentation throws `Call to undefined method Symfony\Component\Validator\Validator\RecursiveValidator::validateValue()`
    
    Commits
    -------
    
    04ecee2 Update validator.rst
    committed Jan 19, 2016
Commits on Jan 6, 2016
  1. bumped version to 1.3.6-DEV

    committed Jan 6, 2016
  2. prepared the 1.3.5 release

    committed Jan 6, 2016
  3. updated CHANGELOG

    committed Jan 6, 2016
Commits on Jan 4, 2016
  1. minor #1300 Replace binary gender examples with something that is act…

    …ually single-choice (igorwwwwwwwwwwwwwwwwwwww)
    
    This PR was merged into the 1.3 branch.
    
    Discussion
    ----------
    
    Replace binary gender examples with something that is actually single-choice
    
    In order to include people who do not fit into the gender binary, gender fields really should be a free-form text field. As such, this patch changes the `choices` example to use a billing plan instead.
    
    # References
    
    * http://gender.wikia.com/wiki/Non-binary
    * https://en.wikipedia.org/wiki/Genderqueer
    * https://modelviewculture.com/pieces/the-argument-for-free-form-input
    * https://www.facebook.com/
    
    Commits
    -------
    
    0e336e5 Replace binary gender examples with something that is actually single-choice
    committed Jan 4, 2016
  2. Replace binary gender examples with something that is actually single…

    …-choice
    
    In order to include people who do not fit into the gender binary, gender fields really should be a free-form text field. As such, this patch changes the `choices` example to use a billing plan instead.
    
    # References
    
    * http://gender.wikia.com/wiki/Non-binary
    * https://en.wikipedia.org/wiki/Genderqueer
    * https://modelviewculture.com/pieces/the-argument-for-free-form-input
    * https://www.facebook.com/
    igorwwwwwwwwwwwwwwwwwwww committed Jan 4, 2016
Commits on Jan 3, 2016
  1. Merge branch '1.3'

    * 1.3:
      updated license year
      Add hint to install browser-kit to use WebTestCase
      fix typo
      fix typo
      fix typo
      [README] Fixed the minimal PHP version
    committed Jan 3, 2016
  2. updated license year

    committed Jan 3, 2016
Commits on Dec 26, 2015
  1. minor #1294 Add hint to install browser-kit to use WebTestCase (GromNaN)

    This PR was merged into the 1.3 branch.
    
    Discussion
    ----------
    
    Add hint to install browser-kit to use WebTestCase
    
    `Silex/WebTestCase` have a requirement for `symfony/browser-kit`.
    This PR give instructions to the developer when PHPUnit is run and this dependency is missing.
    
    Before:
    ```
    PHP Fatal error:  Class 'Symfony\Component\BrowserKit\Client' not found in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Client.php on line 32
    PHP Stack trace:
    PHP   1. {main}() /usr/bin/phpunit:0
    PHP   2. PHPUnit_TextUI_Command::main() /usr/bin/phpunit:547
    PHP   3. PHPUnit_TextUI_Command->run() phar:///usr/bin/phpunit/phar/phpunit/TextUI/Command.php:100
    PHP   4. PHPUnit_TextUI_TestRunner->doRun() phar:///usr/bin/phpunit/phar/phpunit/TextUI/Command.php:148
    PHP   5. PHPUnit_Framework_TestSuite->run() phar:///usr/bin/phpunit/phar/phpunit/TextUI/TestRunner.php:432
    PHP   6. PHPUnit_Framework_TestCase->run() phar:///usr/bin/phpunit/phar/phpunit/Framework/TestSuite.php:735
    PHP   7. PHPUnit_Framework_TestResult->run() phar:///usr/bin/phpunit/phar/phpunit/Framework/TestCase.php:702
    PHP   8. PHPUnit_Framework_TestCase->runBare() phar:///usr/bin/phpunit/phar/phpunit/Framework/TestResult.php:601
    PHP   9. PHPUnit_Framework_TestCase->runTest() phar:///usr/bin/phpunit/phar/phpunit/Framework/TestCase.php:746
    PHP  10. ReflectionMethod->invokeArgs() phar:///usr/bin/phpunit/phar/phpunit/Framework/TestCase.php:881
    ```
    
    After:
    ```
    There was 1 error:
    
    1) FunctionalTest::testAction
    LogicException: Component "symfony/browser-kit" is required by WebTestCase.
    Run composer require symfony/browser-kit
    
    vendor/silex/silex/src/Silex/WebTestCase.php:59
    tests/FunctionalTest.php:14
    ```
    
    Resolves #1293
    
    Commits
    -------
    
    633cd43 Add hint to install browser-kit to use WebTestCase
    committed Dec 26, 2015
Commits on Dec 22, 2015
  1. @yourwebmaker

    Update validator.rst

    Example from documentation throws `Call to undefined method Symfony\Component\Validator\Validator\RecursiveValidator::validateValue()`
    yourwebmaker committed Dec 22, 2015
Commits on Dec 14, 2015
  1. @GromNaN @GromNaN
Commits on Nov 18, 2015
  1. minor #1284 fix typo (nicoder)

    This PR was submitted for the master branch but it was merged into the 1.3 branch instead (closes #1284).
    
    Discussion
    ----------
    
    fix typo
    
    Commits
    -------
    
    21ae66c fix typo
    committed Nov 18, 2015
  2. @nicoder

    fix typo

    nicoder committed with Nov 13, 2015
  3. minor #1283 fix typo (nicoder)

    This PR was submitted for the master branch but it was merged into the 1.3 branch instead (closes #1283).
    
    Discussion
    ----------
    
    fix typo
    
    Commits
    -------
    
    6d0944d fix typo
    committed Nov 18, 2015
  4. @nicoder

    fix typo

    nicoder committed with Nov 13, 2015
  5. minor #1282 fix typo (nicoder)

    This PR was submitted for the master branch but it was merged into the 1.3 branch instead (closes #1282).
    
    Discussion
    ----------
    
    fix typo
    
    Commits
    -------
    
    e9adcdf fix typo
    committed Nov 18, 2015
Something went wrong with that request. Please try again.