framework/RedKiteCms/Rendering/Controller/Deploy/SaveAllPagesController.php
public function save(array $options)
    {
        $serializer = $options["serializer"];
        $deployer = $options["deployer"];
        $languages = $options["configuration_handler"]->languages();

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

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

        return $this->buildJSonResponse(array());
    }
public function save(array $options)
    {
        $serializer = $options["serializer"];
        $deployer = $options["deployer"];
        $languages = $options["configuration_handler"]->languages();

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

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

        return $this->buildJSonResponse(array());
    }
Implements the action to save the website
@param array $options

@return \Symfony\Component\HttpFoundation\Response