|
@@ -6,24 +6,50 @@ $container->loadFromExtension('kernel', 'config', array(
|
|
|
));
|
|
|
|
|
|
$container->loadFromExtension('web', 'config', array(
|
|
|
- 'router' => array('resource' => '%kernel.root_dir%/config/routing.php'),
|
|
|
+ 'router' => array('resource' => '%kernel.root_dir%/config/routing.php'),
|
|
|
+ 'validation' => array('enabled' => true, 'annotations' => true),
|
|
|
));
|
|
|
|
|
|
$container->loadFromExtension('web', 'templating', array(
|
|
|
'escaping' => "htmlspecialchars",
|
|
|
- 'assets_version' => "SomeVersionScheme",
|
|
|
+# 'assets_version' => "SomeVersionScheme",
|
|
|
));
|
|
|
|
|
|
+// Sessions
|
|
|
+/*
|
|
|
+$container->loadFromExtension('kernel', 'session', array(
|
|
|
+ 'default_locale' => "fr",
|
|
|
+ 'session' => array(
|
|
|
+ 'name' => "SYMFONY",
|
|
|
+ 'type' => "Native",
|
|
|
+ 'lifetime' => "3600",
|
|
|
+ )
|
|
|
+));
|
|
|
+*/
|
|
|
+
|
|
|
+// Twig Configuration
|
|
|
+/*
|
|
|
+$container->loadFromExtension('twig', 'config', array('auto_reload' => true));
|
|
|
+*/
|
|
|
+
|
|
|
+// Doctrine Configuration
|
|
|
+/*
|
|
|
$container->loadFromExtension('doctrine', 'dbal', array(
|
|
|
'dbname' => 'xxxxxxxx',
|
|
|
- 'user' => 'root',
|
|
|
+ 'user' => 'xxxxxxxx',
|
|
|
'password' => '',
|
|
|
));
|
|
|
+$container->loadFromExtension('doctrine', 'orm');
|
|
|
+*/
|
|
|
|
|
|
-$container->loadFromExtension('doctrine', 'orm', array());
|
|
|
-
|
|
|
+// Swiftmailer Configuration
|
|
|
+/*
|
|
|
$container->loadFromExtension('swift', 'mailer', array(
|
|
|
- 'transport' => "gmail",
|
|
|
- 'username' => "xxxxxxxx",
|
|
|
- 'password' => "xxxxxxxx",
|
|
|
+ 'transport' => "smtp",
|
|
|
+ 'encryption' => "ssl",
|
|
|
+ 'auth_mode' => "login",
|
|
|
+ 'host' => "smtp.gmail.com",
|
|
|
+ 'username' => "xxxxxxxx",
|
|
|
+ 'password' => "xxxxxxxx",
|
|
|
));
|
|
|
+*/
|