k3soft/fos-user-bridge-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (dev-master) of this package.

empty

dev-master 2016-10-12 14:55 UTC

This package is auto-updated.

Last update: 2018-09-24 09:38:22 UTC


README

<TODO: explain routing import>

Getting started

The bundle is a bridge between FOSUserBundle and FOSRestBundle. Allow you to use standard FOSUserBundle's functions though REST API.

Installation

Add k3soft/fos-user-bridge-bundle to your composer.json file:

composer require "k3soft/fos-user-bridge-bundle"

Configure FOSUserBundle and FOSRestBundle.

Register the bundle in app/AppKernel.php:

public function registerBundles()
{
    return array(
        // ...
        new K3Soft\Bundle\FOSUserBridgeBundle\K3SoftFOSUserBridgeBundle(),
    );
}

You must extend K3Soft\Bundle\FOSUserBridgeBundle\Model\User instead of FOS\UserBundle\Model\User class to get full functionality of this bundle.

Configuration

k3_soft_fos_user_bridge:
    profile:
        form:
            type:               K3Soft\Bundle\FOSUserBridgeBundle\Form\Type\ApiProfileFormType
            name:               apiProfileForm
            validation_groups:  [Profile, Default]
    registration:
        form:
            type:               K3Soft\Bundle\FOSUserBridgeBundle\Form\Type\ApiRegistrationFormType
            name:               apiRegistrationForm
            validation_groups:  [Registration, Default]