public function changeTemplateFormAction(Type $type)
    {
        $form = $this->formFactory->create(
            new HomeTemplateType($this->templatesDirectory),
            $type
        );

        return array('form' => $form->createView(), 'type' => $type);
    }