- 15 Jun, 2017 2 commits
-
-
Fabien Potencier authored
-
Fabien Potencier authored
This PR was merged into the 2.1.x-dev branch. Discussion ---------- Docs: Update interface reference for csrf.token_manager The csrf.token_manager is an implementation of CsrfTokenManagerInterface Fix the label and link to the reference Update Usage section to include creation of a new token Commits ------- 0a0c2d9e Update interface reference for csrf.token_manager
-
- 12 Jun, 2017 2 commits
-
-
Fabien Potencier authored
This PR was merged into the 2.1.x-dev branch. Discussion ---------- Remove outdated example code from documentation The `user` method hasn't been part of the security trait since 7052d972 over 2 years ago. Commits ------- 7367244f Remove outdated example code from documentation
-
Jonathan Vollebregt authored
The `user` method hasn't been part of the security trait since 7052d972 over 2 years ago.
-
- 10 Jun, 2017 1 commit
-
-
Andrew J. Hill authored
The csrf.token_manager is an implementation of CsrfTokenManagerInterface Fix the label and link to the reference Update Usage section to include creation of a new token
-
- 02 Jun, 2017 2 commits
-
-
Fabien Potencier authored
This PR was squashed before being merged into the 2.1.x-dev branch (closes #1528). Discussion ---------- Fix exception hander test In symfony 3.3.0, the markup of the error wording has been changed. https://github.com/symfony/symfony/pull/22838 3.2.x `<h1>$title</h1>` 3.3.0 `<h1 class="break-long-words exception-message">$title</h1>` Therefore, in the symfony 3.3.0 environment, ExceptionHandlerTest fails. ``` 1) Silex \ Tests \ ExceptionHandlerTest :: testExceptionHandlerExceptionNoDebug Failed asserting that '<! DOCTYPE html> ... Contains "<h1> Whoops, looks like something went wrong. </h1>". ``` https://github.com/symfony/symfony/pull/22838/files#diff-5a9ac37e71d14aa261fe6f68848a6277L42 I deleted `<h1>` by referring to it. Commits ------- 69e2771b Fix exception hander test
-
chihiro-adachi authored
-
- 19 May, 2017 2 commits
-
-
Fabien Potencier authored
This PR was squashed before being merged into the 2.1.x-dev branch (closes #1521). Discussion ---------- Update web_servers.rst Reformat code listing <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/silexphp/silex/1521) <!-- Reviewable:end --> Commits ------- 6b9319ac Update web_servers.rst
-
Denis K authored
-
- 14 May, 2017 3 commits
-
-
Fabien Potencier authored
-
Fabien Potencier authored
This PR was merged into the 2.1.x-dev branch. Discussion ---------- Clarify documentations around protected closures. The docs state that "protected closures do not get access to the container", but this is somewhat misleading (it confused me for a quite some time). It's true that protected closures are not passed the container as a function argument, but they can access the container via `use ($app)`. Commits ------- 45d9113d Clarify documentations around protected closures.
-
Jordan Lev authored
The docs state that "protected closures do not get access to the container", but this is somewhat misleading (it confused me for a quite some time). It's true that protected closures are not passed the container as a function argument, but they can access the container via `use ($app)`.
-
- 09 May, 2017 4 commits
-
-
Fabien Potencier authored
This PR was squashed before being merged into the 2.1.x-dev branch (closes #1514). Discussion ---------- Fixed WebTestCase compatibility with PHPUnit 6+ Makes `WebTestCase` inherit from `PHPUnit\Framework\TestCase` instead of `PHPUnit_Framework_TestCase`. Strictly speaking it's a BC break, but as the namespaced class is now available in PHPUnit 4.8.35, 5.4+ and 6.x it's probable safe. Commits ------- 619018a7 Fixed WebTestCase compatibility with PHPUnit 6+
-
Pascal Luna authored
-
Fabien Potencier authored
This PR was squashed before being merged into the 2.1.x-dev branch (closes #1515). Discussion ---------- Use PHPUnit\Framework\TestCase in Silex tests I changed all the tests so they use the namespaced class instead of `PHPUnit_Framework_TestCase`. That doesn't really bring anything, but will be one less thing to change when Silex switches to PHP7/PHPUnit 6. Commits ------- f8731dad Use PHPUnit\Framework\TestCase in Silex tests
-
Pascal Luna authored
-
- 03 May, 2017 14 commits
-
-
Fabien Potencier authored
-
Fabien Potencier authored
-
Fabien Potencier authored
-
Fabien Potencier authored
-
Fabien Potencier authored
This PR was merged into the 2.1.x-dev branch. Discussion ---------- Update session.rst to explain handlers Expand the documentation to explain how to use different session providers. Commits ------- a925171a Update session.rst to explain handlers
-
Fabien Potencier authored
This PR was merged into the 2.1.x-dev branch. Discussion ---------- Update guard_authentication.rst isPasswordValid() needs hashed password, not plaintext. Commits ------- 1a86c8ac Update guard_authentication.rst
-
Fabien Potencier authored
This PR was merged into the 2.1.x-dev branch. Discussion ---------- Update web_servers.rst Just another option for Apache that works Commits ------- d639b447 Update web_servers.rst
-
Fabien Potencier authored
-
Fabien Potencier authored
This PR was squashed before being merged into the 2.1.x-dev branch (closes #1503). Discussion ---------- Added more options to security.firewalls Added "methods" and "hosts" options to security.firewalls Commits ------- 262bc73c Added more options to security.firewalls
-
Vladimir Zapletal authored
-
Fabien Potencier authored
This PR was merged into the 2.1.x-dev branch. Discussion ---------- Added WebLink component integration I made the necessary changes to support the new WebLink component: - `HttpKernelServiceProvider` registers the `AddLinkHeaderListener` if the component is available - `TwigServiceProvider` adds the `WebLinkExtension` if the component and the Twig bridge are available - Both changes are tested - The documentation has been amended (the link to the Symfony website doesn't work as 3.3 hasn't been released yet but I believe it's the good URL) Commits ------- 37bd5aed Added WebLink component integration
-
Fabien Potencier authored
This PR was merged into the 2.1.x-dev branch. Discussion ---------- Added parameters to configure the Twig core extension behavior This adds the following parameters to configure `Twig_Extension_Core`: - `twig.date.format` (default `date` format) - `twig.date.interval_format` (default `date` format for intervals) - `twig.date.timezone` (default timezone) - `twig.number_format.decimals` (default number of decimals for `number_format`) - `twig.number_format.decimal_point` (default decimals separator for `number_format`) - `twig.number_format.thousands_separator` (default thousands separator for `number_format`) Commits ------- 99a4fb35 Added parameters to configure the Twig core extension behavior
-
Fabien Potencier authored
This PR was merged into the 2.1.x-dev branch. Discussion ---------- Fix deprecation notice with symfony/twig-bridge 3.2+ in TwigServiceProvider Fixes the deprecation triggered when instantiating `FormExtension` twig-bridge with 3.2+. I check for the existence of `Symfony\Bridge\Twig\Extension\HttpKernelRuntime` to determine if we're using 3.2 as it was added in 3.2.0-beta1. Commits ------- 6615118d Fix deprecation notice with symfony/twig-bridge 3.2+ in TwigServiceProvider
-
Pascal Luna authored
-
- 02 May, 2017 2 commits
-
-
Fabien Potencier authored
This PR was merged into the 2.1.x-dev branch. Discussion ---------- Fix AssetServiceProviderTest::testGenerateAssetUrl The test broke when symfony/symfony#22528 got merged. I added one check without the starting slash (the returned path should be relative to `base_path`) and modified the expectation of the check with the starting slash (the returned path should not be relative). ``` There was 1 failure: 1) Silex\Tests\Provider\AssetServiceProviderTest::testGenerateAssetUrl Failed asserting that two strings are equal. --- Expected +++ Actual @@ @@ -'/whatever-makes-sense/foo.css?css2' +'/foo.css?css2' ``` Commits ------- ce8e41b5 Fix AssetServiceProviderTest::testGenerateAssetUrl
-
Pascal Luna authored
-
- 30 Apr, 2017 3 commits
-
-
Pascal Luna authored
-
Pascal Luna authored
-
Fabien Potencier authored
This PR was merged into the 2.1.x-dev branch. Discussion ---------- Use the simple-phpunit script in Travis and add PHP 7.1 This will fix the Travis build issues with PHP 7. I upped the `symfony/phpunit-bridge` version requirement so we can use the `simple-phpunit` script that was added in 3.2.0, and updated the `script` config value. While I was at it, I also added PHP 7.1 to the matrix (hopefully it's ok to do this in the same PR). Commits ------- 392d8335 Use the phpunit-bridge script in Travis
-
- 23 Apr, 2017 1 commit
-
-
Pascal Luna authored
-
- 14 Mar, 2017 2 commits
-
-
Fabien Potencier authored
This PR was squashed before being merged into the 2.1.x-dev branch (closes #1490). Discussion ---------- Update README.rst Add code-bloc for PHP and delete `$` before command lines. Commits ------- c98f3529 Update README.rst
-
Arnaud Ligny authored
-
- 05 Mar, 2017 1 commit
-
-
Fabien Potencier authored
This PR was merged into the 2.1.x-dev branch. Discussion ---------- Update the documentation Hi all! I've made a few minor changes to the docs ~to get those back into shape. However I could use help finishing the `routing.rst`, this describes the `RoutingServiceProvider`. The provider is powerful and awesome, but I struggle getting any good copy in there. So if you have time please help out :)~ Commits ------- 75dcc3b9 Update documentation.
-
- 03 Mar, 2017 1 commit
-
-
SpacePossum authored
-