Skip to content

Commit 289ce2d

Browse files
authored
Merge pull request #3076 from stof/prepare_major_version
Prepare the major version
2 parents ae4ce46 + 5ead80e commit 289ce2d

44 files changed

Lines changed: 44 additions & 334 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
},
6363
"extra": {
6464
"branch-alias": {
65-
"dev-master": "3.x-dev"
65+
"dev-master": "4.x-dev"
6666
}
6767
},
6868
"autoload": {

docs/index.rst

Lines changed: 3 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -216,44 +216,6 @@ this to start:
216216
}
217217
}
218218
219-
c) CouchDB User class
220-
.....................
221-
222-
.. note::
223-
Support for the CouchDB ODM is deprecated as the Doctrine CouchDB ODM is unmaintained.
224-
225-
If you're persisting your users via the Doctrine CouchDB ODM, then your ``User``
226-
class should live in the ``CouchDocument`` namespace of your bundle and look
227-
like this to start:
228-
229-
.. code-block:: php
230-
231-
<?php
232-
// src/AppBundle/CouchDocument/User.php
233-
234-
namespace AppBundle\CouchDocument;
235-
236-
use FOS\UserBundle\Model\User as BaseUser;
237-
use Doctrine\ODM\CouchDB\Mapping\Annotations as CouchDB;
238-
239-
/**
240-
* @CouchDB\Document
241-
*/
242-
class User extends BaseUser
243-
{
244-
/**
245-
* @CouchDB\Id
246-
*/
247-
protected $id;
248-
249-
public function __construct()
250-
{
251-
parent::__construct();
252-
// your own logic
253-
}
254-
}
255-
256-
257219
Step 4: Configure your application's security.yml
258220
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
259221

@@ -351,7 +313,7 @@ of datastore you are using.
351313
352314
# app/config/config.yml
353315
fos_user:
354-
db_driver: orm # other valid values are 'mongodb', 'couchdb' and 'custom'
316+
db_driver: orm # other valid values are 'mongodb' and 'custom'
355317
firewall_name: main
356318
user_class: AppBundle\Entity\User
357319
from_email:
@@ -362,7 +324,7 @@ of datastore you are using.
362324
363325
<!-- app/config/config.xml -->
364326
365-
<!-- other valid 'db-driver' values are 'mongodb', 'couchdb' and 'custom' -->
327+
<!-- other valid 'db-driver' values are 'mongodb' and 'custom' -->
366328
<fos_user:config
367329
db-driver="orm"
368330
firewall-name="main"
@@ -371,7 +333,7 @@ of datastore you are using.
371333
372334
Only four configuration's nodes are required to use the bundle:
373335

374-
* The type of datastore you are using (``orm``, ``mongodb``, ``couchdb`` or ``custom```).
336+
* The type of datastore you are using (``orm``, ``mongodb`` or ``custom```).
375337
* The firewall name which you configured in Step 4.
376338
* The fully qualified class name (FQCN) of the ``User`` class which you created in Step 3.
377339
* The default email address to use when the bundle send a registration confirmation to the user.

docs/user_manager.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ of ``FOS\UserBundle\Doctrine\UserManager``.
1313
If you configure the ``db_driver`` option to ``mongodb``, this service is an
1414
instance of ``FOS\UserBundle\Doctrine\UserManager``.
1515

16-
If you configure the ``db_driver`` option to ``couchdb``, this service is an
17-
instance of ``FOS\UserBundle\Doctrine\UserManager``.
18-
1916
Accessing the User Manager service
2017
----------------------------------
2118

@@ -148,8 +145,3 @@ SecurityBundle integration
148145

149146
The bundle provides several implementation of ``Symfony\Component\Security\Core\UserProviderInterface``
150147
on top of the ``UserManagerInterface``.
151-
152-
Although the built-in user managers also implement
153-
``Symfony\Component\Security\Core\User\UserProviderInterface``, using the
154-
UserManager as user provider is deprecated and will tbe removed in future
155-
versions. Use ``FOS\UserBundle\Security\UserProvider`` instead.

src/Command/ActivateUserCommand.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,9 @@
2424
* @author Antoine Hérault <antoine.herault@gmail.com>
2525
*
2626
* @internal
27-
*
28-
* @final
2927
*/
3028
#[AsCommand(name: 'fos:user:activate', description: 'Activate a user')]
31-
class ActivateUserCommand extends Command
29+
final class ActivateUserCommand extends Command
3230
{
3331
// BC with Symfony <5.3
3432
protected static $defaultName = 'fos:user:activate';

src/Command/ChangePasswordCommand.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,9 @@
2222

2323
/**
2424
* @internal
25-
*
26-
* @final
2725
*/
2826
#[AsCommand(name: 'fos:user:change-password', description: 'Change the password of a user.')]
29-
class ChangePasswordCommand extends Command
27+
final class ChangePasswordCommand extends Command
3028
{
3129
// BC with Symfony <5.3
3230
protected static $defaultName = 'fos:user:change-password';

src/Command/CreateUserCommand.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,9 @@
2727
* @author Luis Cordova <cordoval@gmail.com>
2828
*
2929
* @internal
30-
*
31-
* @final
3230
*/
3331
#[AsCommand(name: 'fos:user:create', description: 'Create a user.')]
34-
class CreateUserCommand extends Command
32+
final class CreateUserCommand extends Command
3533
{
3634
// BC with Symfony <5.3
3735
protected static $defaultName = 'fos:user:create';

src/Command/DeactivateUserCommand.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,9 @@
2424
* @author Antoine Hérault <antoine.herault@gmail.com>
2525
*
2626
* @internal
27-
*
28-
* @final
2927
*/
3028
#[AsCommand(name: 'fos:user:deactivate', description: 'Deactivate a user')]
31-
class DeactivateUserCommand extends Command
29+
final class DeactivateUserCommand extends Command
3230
{
3331
// BC with Symfony <5.3
3432
protected static $defaultName = 'fos:user:deactivate';

src/Command/DemoteUserCommand.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@
2020
* @author Lenar Lõhmus <lenar@city.ee>
2121
*
2222
* @internal
23-
*
24-
* @final
2523
*/
2624
#[AsCommand(name: 'fos:user:demote', description: 'Demote a user by removing a role')]
27-
class DemoteUserCommand extends RoleCommand
25+
final class DemoteUserCommand extends RoleCommand
2826
{
2927
// BC with Symfony <5.3
3028
protected static $defaultName = 'fos:user:demote';

src/Command/PromoteUserCommand.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,9 @@
2222
* @author Lenar Lõhmus <lenar@city.ee>
2323
*
2424
* @internal
25-
*
26-
* @final
2725
*/
2826
#[AsCommand(name: 'fos:user:promote', description: 'Promotes a user by adding a role')]
29-
class PromoteUserCommand extends RoleCommand
27+
final class PromoteUserCommand extends RoleCommand
3028
{
3129
// BC with Symfony <5.3
3230
protected static $defaultName = 'fos:user:promote';

src/Controller/ChangePasswordController.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,8 @@
3131
*
3232
* @author Thibault Duplessis <thibault.duplessis@gmail.com>
3333
* @author Christophe Coevoet <stof@notk.org>
34-
*
35-
* @final
3634
*/
37-
class ChangePasswordController extends AbstractController
35+
final class ChangePasswordController extends AbstractController
3836
{
3937
private $eventDispatcher;
4038
private $formFactory;

0 commit comments

Comments
 (0)