$em->persist($config);
$em->flush();
+ $request->getSession()->set('_locale', $config->getLanguage());
+
// switch active theme
$activeTheme = $this->get('liip_theme.active_theme');
$activeTheme->setName($config->getTheme());
'token' => $config->getRssToken(),
],
'twofactor_auth' => $this->getParameter('twofactor_auth'),
+ 'wallabag_url' => $this->get('craue_config')->get('wallabag_url'),
'enabled_users' => $this->getDoctrine()
->getRepository('WallabagUserBundle:User')
->getSumEnabledUsers(),
*/
public function resetAction($type)
{
- $em = $this->getDoctrine()->getManager();
-
switch ($type) {
case 'annotations':
$this->getDoctrine()