Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Commit

Permalink
(branche 0_4)
Browse files Browse the repository at this point in the history
#14: Symfony / Doctrine Compatibility
In Symfony 2.6 the first constructor argument of UsernamePasswordFormAuthenticationListener
is (now) typehinted as SecurityContextInterface
- composer.json require "symfony/symfony": ">=2.7"
- adapted README.md
- adapted Installation.md
  • Loading branch information
metaclass-nl committed Jan 13, 2016
1 parent e9b0bd8 commit 306dc21
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 6 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ FEATURES

REQUIREMENTS
------------
This bundle is for the symfony framework and requires Symfony >=2.6 and <3.0-dev.
(for Symfony ~2.3 use v0.3)
This version of the bundle is for the symfony framework and requires Symfony >=2.7 and <3.0-dev.
(for Symfony ~2.3 use v0.3, for Symfony 3.0 use v0.5/master)
Requires metaclass-nl/tresholds-governor 0.2@dev which uses Doctrine DBAL >=2.3
Tested with MySQL 5.5.
Tested with MySQL 5.5, PHP7.0.1 (requires Symfony 2.8!),
Tested on Symfony 2.7.7 (without crsf token)
and on Symfony 2.8.1 with FOSUserBundle 1.3.6 and 6ccff96 (> 2.0.0 alpha3).

RELEASE NOTES
-------------
Expand Down
9 changes: 7 additions & 2 deletions Resources/doc/Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,15 @@ Installation
form_login:
id: somecustomserviceid
```
you are using a custom form authenticaton listener service. This bundle can only guard it if your service is configured
you are using a custom form authenticaton listener service.
May or may not work depending on the configuration of your service.
(works with FOSUserBundle 1.3 and probably with 2.0 too)

This bundle can only guard your service ig it is configured
to use the default security.authentication.listener.form.class
(Symfony\Component\Security\Http\Firewall\UsernamePasswordFormAuthenticationListener)
and you will have to write your own configuration to use instead of the one under step 4.
and you may have to write your own configuration to use instead of the one under step 6
(the one under step 6 did work with FOSUserBundle).

2. Require the bundle and the tresholds governor library it needs in your composer.json
```js
Expand Down
10 changes: 10 additions & 0 deletions Resources/doc/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -352,3 +352,13 @@ Since 3.0 it is typehinted CsrfTokenManagerInterface
- Service\UsernamePasswordFormAuthenticationGuard renamed $csrfProvider to $csrfTokenManager
::__construct replaced CsrfProviderInterface by CsrfTokenManagerInterface
::checkCrsfToken replaced with code from UsernamePasswordFormAuthenticationListener
comitted, pushed, published
-------------------------------
(branche 0_4)
#14: Symfony / Doctrine Compatibility
In Symfony 2.6 the first constructor argument of UsernamePasswordFormAuthenticationListener
is (now) typehinted as SecurityContextInterface
- composer.json require "symfony/symfony": ">=2.7"
- adapted README.md
- adapted Installation.md
----------------------------------
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"minimum-stability": "dev",
"require": {
"php": ">=5.3.3",
"symfony/symfony": ">=2.6,<3.0-dev",
"symfony/symfony": ">=2.7,<3.0-dev",
"metaclass-nl/tresholds-governor": ">=0.2@dev"
},
"require-dev": {
Expand Down

0 comments on commit 306dc21

Please sign in to comment.