protected function deriveFrontendRoute($parameters) { $authorization_key = $this->user->getEmailAuthorizationKey(); $frontend_app_location = rtrim(ProjectConfiguration::getFrontendAppLocation(), '/'); $frontendRouting = new sfPatternRouting(new sfEventDispatcher()); $config = new sfRoutingConfigHandler(); $routes = $config->evaluate(array(sfConfig::get('sf_apps_dir') . '/frontend/config/routing.yml')); $frontendRouting->setRoutes($routes); $frontend_route = $frontend_app_location . $frontendRouting->generate('sf_guard_verify', array('key' => $authorization_key)); return $frontend_route; }