symfony-bundle rer-user-bundle
User provider for Symfony to access Regione Emilia-Romagna
performer/rer-user-bundle
User provider for Symfony to access Regione Emilia-Romagna
- Tuesday, March 31, 2015
- by garak
- Repository
- 3 Watchers
- 3 Stars
- 726 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 7 % Grown
Configurazione
Aggiungere in AppKernel.php
:, (*1)
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Performer\RerUserBundle\PerformerRerUserBundle(),
);
}
Creare entity:, (*2)
<?php
// src/AppBundle/Entity/Utente.php
use Doctrine\ORM\Mapping as ORM;
use Performer\RerUserBundle\Entity\User;
/**
* @ORM\Table()
* @ORM\Entity(repositoryClass="Performer\RerUserBundle\Repository\UserRepository")
*/
class Utente extends User
{
}
Aggiungere in configurazione:, (*3)
# app/config/config.yml
performer_rer_user:
user_class: AppBundle\Entity\Utente
soap:
# questi due valori vanno personalizzati
app_id: app_id_fornito_da_RER
salt: salt_fornito_da_RER