p2/security-bundle

Enhances the Symfony SecurityBundle

Installs: 32

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

pkg:composer/p2/security-bundle

1.0.0 2013-07-15 18:15 UTC

This package is not auto-updated.

Last update: 2025-10-11 19:43:54 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
{
    // ...
}