controllers/Controller/Theme/SaveThemeController.php
public function saveAction(Request $request, Application $app)
    {
        $options = array(
            "configuration_handler" => $app["red_kite_cms.configuration_handler"],
            "plugin_manager" => $app["red_kite_cms.plugin_manager"],
            "theme_deployer" => $app["red_kite_cms.theme_deployer"],
            "page" => clone($app["red_kite_cms.page"]),
        );

        return parent::save($options);
    }
public function saveAction(Request $request, Application $app)
    {
        $options = array(
            "configuration_handler" => $app["red_kite_cms.configuration_handler"],
            "plugin_manager" => $app["red_kite_cms.plugin_manager"],
            "theme_deployer" => $app["red_kite_cms.theme_deployer"],
            "page" => clone($app["red_kite_cms.page"]),
        );

        return parent::save($options);
    }
Save a site as a theme action

@param \Symfony\Component\HttpFoundation\Request $request
@param \Silex\Application                        $app
@return \Symfony\Component\HttpFoundation\Response