QCharts/FrontendBundle/Controller/MainController.php
public function databaseSelection(Request $request)
    {
        $authChecker = $this->get("security.authorization_checker");
        $roles = $this->getParameter("qcharts.user_roles");
        $urls = $this->getParameter("qcharts.urls");
        if (!$authChecker->isGranted($roles["user"]))
        {
            return new RedirectResponse($this->generateUrl($urls["redirects"]["logout"]));
        }

        //return the page to load!
    }
public function databaseSelection(Request $request)
    {
        $authChecker = $this->get("security.authorization_checker");
        $roles = $this->getParameter("qcharts.user_roles");
        $urls = $this->getParameter("qcharts.urls");
        if (!$authChecker->isGranted($roles["user"]))
        {
            return new RedirectResponse($this->generateUrl($urls["redirects"]["logout"]));
        }

        //return the page to load!
    }
TODO: continue this here!