ee/lightuser-bundle

受FOSUserBundle启发,但更为简单。当您只需要一个简单的用户时非常合适。

安装: 43

依赖者: 0

建议者: 0

安全: 0

星标: 0

关注者: 6

分支: 1

开放问题: 0

类型:symfony-bundle

dev-master 2013-09-24 19:55 UTC

This package is not auto-updated.

Last update: 2024-09-23 14:18:26 UTC


README

受FOSUserBundle启发,但更为简单。当您只需要一个简单的用户时非常合适。

重要提示:此扩展包旨在与Doctrine ORM一起使用

安装

步骤 1 - Composer

"ee/lightuser-bundle": "dev-master"

步骤 2 - 启用扩展包

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            [...]
            new EE\LightUserBundle\EELightUserBundle()
        );

    [...]

步骤 3 - 创建用户实体

步骤 4 - 配置

您必须提供实体类(是的,就是上一步的那个)

# app/config/config.yml

ee_light_user:
    entity:
        user:
            class: Acme\DemoBundle\Entity\User

注册用户提供者

# app/config.security.yml

providers:
    lightuser:
        id: ee_light_user.user_provider

食谱集