2017 © Pedro PelĂĄez
 

symfony-bundle autologin-bundle

Symfony AutologinBundle

image

sopinet/autologin-bundle

Symfony AutologinBundle

  • Thursday, October 22, 2015
  • by Sopinet
  • Repository
  • 10 Watchers
  • 1 Stars
  • 98 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

autologin-bundle

When you receive a notification, invitation, etc. by email with a URL to your site, you have to login everytime. With this module, you will login automatically when you click on URL, it's too easy. Come on!, (*1)

Prerequisites

This module works with FOSUserBundle (see Documentation), (*2)

Installation

composer.json

``` bash $ php composer.phar require sopinet/autologin-bundle 'dev-master', (*3)


### AppKernel.php ``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Sopinet\AutologinBundle\SopinetAutologinBundle(), ); }

config.yml

``` yaml, (*4)

app/config/config.yml

sopinet_autologin: domain: http://domain.com, (*5)


### routing.yml ``` yaml # app/config/routing.yml sopinet_autologin: resource: "@SopinetAutologinBundle/Resources/config/routing.yml" prefix: /

How to use

Generate the URL, (*6)

``` php <?php $url = $this->container->get('urlhelper')->generateUrl($route, $user);, (*7)

$message = \Swift_Message::newInstance() ->setSubject(...) ->setFrom(...) ->setTo(...) ->setBody($this->container->get('templating')->render('your_template.html.twig', array('url' => $url)), 'text/html'); ```, (*8)

The Versions

22/10 2015

dev-twig-extension

dev-twig-extension http://sopinet.com

Symfony AutologinBundle

  Sources   Download

The Requires

 

12/08 2015

dev-master

9999999-dev http://sopinet.com

Symfony AutologinBundle

  Sources   Download

The Requires

 

08/06 2015

dev-sopinet-user-bundle

dev-sopinet-user-bundle http://sopinet.com

Symfony AutologinBundle

  Sources   Download

The Requires