framework/RedKiteCms/Rendering/Controller/Deploy/SavePageController.php
public function save(array $options)
    {
        $request = $options["request"];
        $serializer = $options["serializer"];
        $deployer = $options["deployer"];
        $saveOptions = array(
            'page' => $request->get('page'),
            'language' => $request->get('language'),
            'country' => $request->get('country'),
        );

        $blockManager = new BlockManagerApprover($serializer, new OptionsResolver());
        $deployer
            ->contributor($options["username"])
            ->save($blockManager, $saveOptions)
        ;

        $this->buldSitemap($options);
        $this->removeCache($options);

        return $this->buildJSonResponse(array());
    }
public function save(array $options)
    {
        $request = $options["request"];
        $serializer = $options["serializer"];
        $deployer = $options["deployer"];
        $saveOptions = array(
            'page' => $request->get('page'),
            'language' => $request->get('language'),
            'country' => $request->get('country'),
        );

        $blockManager = new BlockManagerApprover($serializer, new OptionsResolver());
        $deployer
            ->contributor($options["username"])
            ->save($blockManager, $saveOptions)
        ;

        $this->buldSitemap($options);
        $this->removeCache($options);

        return $this->buildJSonResponse(array());
    }
public function save ( array $ options ) { $ request = $ options [ "request" ] ; $ serializer = $ options [ "serializer" ] ; $ deployer = $ options [ "deployer" ] ; $ saveOptions = array ( 'page' => $ request -> get ( 'page' ) , 'language' => $ request -> get ( 'language' ) , 'country' => $ request -> get ( 'country' ) , ) ; $ blockManager = new BlockManagerApprover ( $ serializer , new OptionsResolver ( ) ) ; $ deployer -> contributor ( $ options [ "username" ] ) -> save ( $ blockManager , $ saveOptions ) ; $ this -> buldSitemap ( $ options ) ; $ this -> removeCache ( $ options ) ; return $ this -> buildJSonResponse ( array ( ) ) ; }
Implements the action to save the page
@param array $options

@return \Symfony\Component\HttpFoundation\Response
Implements the action to save the page @param array $options