p2 / security-bundle
Enhances the Symfony SecurityBundle
Package info
github.com/phillies2k/security-bundle
Type:symfony-bundle
pkg:composer/p2/security-bundle
1.0.0
2013-07-15 18:15 UTC
Requires
- php: >=5.3.3
- symfony/framework-bundle: 2.3.*
- symfony/security-bundle: 2.3.*
This package is not auto-updated.
Last update: 2026-02-28 21:38:34 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
{
// ...
}