Skip to content

Instantly share code, notes, and snippets.

View COil's full-sized avatar
🎯
Focusing

Loïc Vernet COil

🎯
Focusing
View GitHub Profile
@COil
COil / gist:1572339
Created January 6, 2012 20:46
Extending the Symfony2 session: snippet #2
<?php
// /app/src/COil/QuestBundle/Lib/mySession.php
namespace COil\QuestBundle\Lib;
use Symfony\Component\HttpFoundation\Session;
/**
* mySession object.
*/
@COil
COil / gist:1572300
Created January 6, 2012 20:37
Extending the Symfony2 session: snippet1
# /app/config/config.yml
services:
session:
class: COil\QuestBundle\Lib\mySession
arguments:
- @session.storage
- %locale%