p2 / security-bundle
Enhances the Symfony SecurityBundle
Installs: 31
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.3
- symfony/framework-bundle: 2.3.*
- symfony/security-bundle: 2.3.*
This package is not auto-updated.
Last update: 2024-11-09 14:57:11 UTC
README
Installation
"require": {
"p2/security-bundle": "~1.0"
}
Configuration
p2_security:
document: Acme\UserBundle\Document\User # The user document class
manager: @user_manager # The service id of your user manager
encoder: sha256 # The encoder algorithm to use
Usage
Simply extend your user document with the P2 Security user class.
<?php
namespace Acme\BlogBundle\Document;
use P2\Bundle\SecurityBundle\Security\User as SecurityUser;
class User extends SecurityUser
{
// ...
}
Implement the UserManagerInterface:
<?php
namespace Acme\BlogBundle\Repository;
use P2\Bundle\SecurityBundle\Security\UserManagerInterface;
class UserRepository extends DocumentRepository implements UserManagerInterface
{
// ...
}