- 25 May, 2016 1 commit
-
-
Fabien Potencier authored
-
- 03 May, 2016 7 commits
-
-
Fabien Potencier authored
This PR was merged into the 2.0.x-dev branch. Discussion ---------- Address bc changes from Symfony 2.8 to Symfony 3 Ref: https://github.com/silexphp/Silex/issues/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 ------- b29c33f5 Address bc changes from Symfony 2.8 to Symfony 3
-
Fabien Potencier authored
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 ------- 155cb751 removed support for Symfony 2.7
-
Fabien Potencier authored
-
Fabien Potencier authored
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 ------- 5a9516ed Added test for access rule path array
-
Georald Camposano authored
-
Fabien Potencier authored
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 ------- b6db6b38 encode documentation exemple password with password_hash
-
Fabien Potencier authored
bug #1332 Fixing TwigServiceProvider when used with FormServiceProvider 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 ------- cd682f5f Changing the declaration of twig.form.render to ensure it won't choke if CsrfServiceProvider is not used.
-
- 01 May, 2016 1 commit
-
-
Fabien Potencier authored
* 1.3: fixed typo s/middlewares/middleware
-
- 29 Apr, 2016 5 commits
-
-
Fabien Potencier authored
-
Fabien Potencier authored
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 ------- 06374dc8 s/middlewares/middleware
-
Nicolas Dermine authored
-
Fabien Potencier authored
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 ------- 4b5ccc9a Add support for the Guard component to the SecurityServiceProvider
-
Jérôme Tamarelle authored
-
- 06 Apr, 2016 1 commit
-
-
Mathieu Rochette authored
-
- 02 Apr, 2016 1 commit
-
-
skalpa authored
Changing the declaration of twig.form.render to ensure it won't choke if CsrfServiceProvider is not used. Fixes #1331
-
- 10 Mar, 2016 3 commits
-
-
Fabien Potencier authored
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 ------- 9698b776 Allow use of all the RequestMatcher parameters by providing an array
-
quazardous authored
-
Fabien Potencier authored
This PR was merged into the 2.0.x-dev branch. Discussion ---------- Use BCrypt by default as encoder #1312 Based on work of @mvanbaak (https://github.com/silexphp/Silex/pull/1316) with applied comments from @mathroc and fixed tests. Commits ------- 7f13e76f use bcrypt by default as encoder #1312; add pbkdf2 encoder
-
- 29 Feb, 2016 1 commit
-
-
Nikolay Labinskiy authored
-
- 08 Feb, 2016 2 commits
-
-
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
-
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
-
- 07 Feb, 2016 1 commit
-
-
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
-
- 19 Jan, 2016 1 commit
-
-
Fabien Potencier authored
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 ------- 04ecee29 Update validator.rst
-
- 15 Jan, 2016 1 commit
-
-
Joel Roggenkamp authored
Ref: https://github.com/silexphp/Silex/issues/1302 How is pre-Symfony3 documentation handled? Is that a separate page or should notes on pre-Symfony3 usage be included on this page?
-
- 06 Jan, 2016 3 commits
-
-
Fabien Potencier authored
-
Fabien Potencier authored
-
Fabien Potencier authored
-
- 04 Jan, 2016 2 commits
-
-
Fabien Potencier authored
minor #1300 Replace binary gender examples with something that is actually 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 ------- 0e336e53 Replace binary gender examples with something that is actually single-choice
-
igorwwwwwwwwwwwwwwwwwwww authored
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/
-
- 03 Jan, 2016 2 commits
-
-
Fabien Potencier authored
* 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
-
Fabien Potencier authored
-
- 26 Dec, 2015 1 commit
-
-
Fabien Potencier authored
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 ------- 633cd437 Add hint to install browser-kit to use WebTestCase
-
- 22 Dec, 2015 1 commit
-
-
Daniel Lima authored
Example from documentation throws `Call to undefined method Symfony\Component\Validator\Validator\RecursiveValidator::validateValue()`
-
- 14 Dec, 2015 1 commit
-
-
Jérôme Tamarelle authored
Refs #1293
-
- 18 Nov, 2015 5 commits
-
-
Fabien Potencier authored
This PR was submitted for the master branch but it was merged into the 1.3 branch instead (closes #1284). Discussion ---------- fix typo Commits ------- 21ae66cd fix typo
-
Nicolas Dermine authored
-
Fabien Potencier authored
This PR was submitted for the master branch but it was merged into the 1.3 branch instead (closes #1283). Discussion ---------- fix typo Commits ------- 6d0944dd fix typo
-
Nicolas Dermine authored
-
Fabien Potencier authored
This PR was submitted for the master branch but it was merged into the 1.3 branch instead (closes #1282). Discussion ---------- fix typo Commits ------- e9adcdf5 fix typo
-