/symfony3.4

Primary LanguageCSSMIT LicenseMIT

Symfony Standard Edition

WARNING: This distribution does not support Symfony 4. See the Installing & Setting up the Symfony Framework page to find a replacement that fits you best.

Welcome to the Symfony Standard Edition - a fully-functional Symfony application that you can use as the skeleton for your new applications.

For details on how to download and get started with Symfony, see the Installation chapter of the Symfony Documentation.

What's inside?

The Symfony Standard Edition is configured with the following defaults:

  • An AppBundle you can use to start coding;

  • Twig as the only configured template engine;

  • Doctrine ORM/DBAL;

  • Swiftmailer;

  • Annotations enabled for everything.

It comes pre-configured with the following bundles:

  • FrameworkBundle - The core Symfony framework bundle

  • SensioFrameworkExtraBundle - Adds several enhancements, including template and routing annotation capability

  • DoctrineBundle - Adds support for the Doctrine ORM

  • TwigBundle - Adds support for the Twig templating engine

  • SecurityBundle - Adds security by integrating Symfony's security component

  • SwiftmailerBundle - Adds support for Swiftmailer, a library for sending emails

  • MonologBundle - Adds support for Monolog, a logging library

  • WebProfilerBundle (in dev/test env) - Adds profiling functionality and the web debug toolbar

  • SensioDistributionBundle (in dev/test env) - Adds functionality for configuring and working with Symfony distributions

  • SensioGeneratorBundle (in dev env) - Adds code generation capabilities

  • WebServerBundle (in dev env) - Adds commands for running applications using the PHP built-in web server

  • DebugBundle (in dev/test env) - Adds Debug and VarDumper component integration

All libraries and bundles included in the Symfony Standard Edition are released under the MIT or BSD license.

Enjoy!

- Il existe une seule table contenant Users et Admins c'est gràce à l'annotation //@ORM\InheritanceType("SINGLE_TABLE") Il faut que l'entité 'Admin' hérite de 'User'

- Mise en place d'un systéme (MAIN+API) d'authentification (FR3DLdapBundle,FOSRestBundle,LexikJWTAuthenticationBundle,FOSUserBundle)

-Utiliser le notion de "chain_provider": (providers: [fos_userbundle, fr3d_ldapbundle])
-La 1ére connexion d'un utilisateur du serveur LDAP va enregistrer les ses infos dans la base des données (pas le mot de passe) 

-Le systéme cherche l'utilisateur dans la base de données d'abord , s'il a un mot de passe il va l'utiliser , si non il va essayer un authentification par le serveur LDAP

-Il faut ajouter "fr3d_ldap:  ~" sous les firewalls concerné par ce systéme.(Main et login dans notre cas)