forked from ezsystems/repository-forms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ContentEditSuccessView.php
28 lines (24 loc) · 939 Bytes
/
ContentEditSuccessView.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/**
* @copyright Copyright (C) eZ Systems AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/
declare(strict_types=1);
namespace EzSystems\RepositoryForms\Content\View;
use eZ\Publish\Core\MVC\Symfony\View\BaseView;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Controller\ControllerReference;
class ContentEditSuccessView extends BaseView
{
/**
* @param \Symfony\Component\HttpFoundation\Response $response
*
* @throws \eZ\Publish\Core\Base\Exceptions\InvalidArgumentType
*/
public function __construct(Response $response)
{
parent::__construct('@EzSystemsRepositoryForms/http/302_empty_content.html.twig');
$this->setResponse($response);
$this->setControllerReference(new ControllerReference('ez_content_edit:editVersionDraftSuccessAction'));
}
}