public function saveAction(Request $request, Application $app)
    {
        $options = array(
            "request" => $request,
            "configuration_handler" => $app["red_kite_cms.configuration_handler"],
            'security' => $app["security"],
            "queue_manager" => $app["red_kite_cms.queue_manager"],
        );

        $response = parent::save($options);
        if ($app["red_kite_cms.queue_manager"]->hasQueue() && $response->getContent() == "Queue saved") {
            $lastRoute = $request->getSession()->get('last_uri');
            return $app->redirect($lastRoute);
        }

        return $response;
    }
public function saveAction(Request $request, Application $app)
    {
        $options = array(
            "request" => $request,
            "configuration_handler" => $app["red_kite_cms.configuration_handler"],
            'security' => $app["security"],
            "queue_manager" => $app["red_kite_cms.queue_manager"],
        );

        $response = parent::save($options);
        if ($app["red_kite_cms.queue_manager"]->hasQueue() && $response->getContent() == "Queue saved") {
            $lastRoute = $request->getSession()->get('last_uri');
            return $app->redirect($lastRoute);
        }

        return $response;
    }
public function saveAction ( Request $ request , Application $ app ) { $ options = array ( "request" => $ request , "configuration_handler" => $ app [ "red_kite_cms.configuration_handler" ] , 'security' => $ app [ "security" ] , "queue_manager" => $ app [ "red_kite_cms.queue_manager" ] , ) ; $ response = parent :: save ( $ options ) ; if ( $ app [ "red_kite_cms.queue_manager" ] -> hasQueue ( ) && $ response -> getContent ( ) == "Queue saved" ) { $ lastRoute = $ request -> getSession ( ) -> get ( 'last_uri' ) ; return $ app -> redirect ( $ lastRoute ) ; } return $ response ; }
Saves the queue action

@param \Symfony\Component\HttpFoundation\Request $request
@param \Silex\Application                        $app
@return \Symfony\Component\HttpFoundation\Response
Saves the queue action