framework/RedKiteCms/Rendering/Controller/Queue/SaveQueueController.php
public function save(array $options)
    {
        $resolver = new OptionsResolver();
        $this->configureOptions($resolver);
        $this->options = $resolver->resolve($options);

        $request = $options["request"];
        $queue = $request->get('queue');
        if (null !== $queue) {
            $this->options["queue_manager"]->queue($queue);
        }
        $username = $this->fetchUserName($options["security"], $options["configuration_handler"]);

        $result = $this->options["queue_manager"]->execute($username);
        if ( ! $result) {
            $content = $this->options["queue_manager"]->renderQueue();

            return new Response($content);
        }

        return new Response("Queue saved");
    }
public function save(array $options)
    {
        $resolver = new OptionsResolver();
        $this->configureOptions($resolver);
        $this->options = $resolver->resolve($options);

        $request = $options["request"];
        $queue = $request->get('queue');
        if (null !== $queue) {
            $this->options["queue_manager"]->queue($queue);
        }
        $username = $this->fetchUserName($options["security"], $options["configuration_handler"]);

        $result = $this->options["queue_manager"]->execute($username);
        if ( ! $result) {
            $content = $this->options["queue_manager"]->renderQueue();

            return new Response($content);
        }

        return new Response("Queue saved");
    }
Implements the action to save the queue
@param array $options

@return \Symfony\Component\HttpFoundation\Response