Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

Output/ValueObjectVisitor/DeletedUserSession.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Publish\Core\REST\Server\Output\ValueObjectVisitor;
8
9 use eZ\Publish\Core\REST\Common\Output\Generator;
10 use eZ\Publish\Core\REST\Common\Output\Visitor;
11
12 class DeletedUserSession extends NoContent
13 {
21 public function visit(Visitor $visitor, Generator $generator, $data)
22 {
23 parent::visit($visitor, $generator, $data);
24
25 $visitorResponse = $visitor->getResponse();
26 $visitorResponse->headers->add($data->response->headers->all());
27 foreach ($data->response->headers->getCookies() as $cookie) {
28 $visitorResponse->headers->setCookie($cookie);
29 }
30 }
31 }
eZ\Publish\Core\REST\Common\Output\Generator
Output generator.
Definition: REST/Common/Output/Generator.php:13
eZ\Publish\Core\REST\Common\Output\Visitor
Visits a value object into an HTTP Response.
Definition: Visitor.php:15
eZ\Publish\Core\REST\Common\Output\Visitor\getResponse
getResponse()
Definition: Visitor.php:156
eZ\Publish\Core\REST\Server\Output\ValueObjectVisitor\DeletedUserSession
Definition: Output/ValueObjectVisitor/DeletedUserSession.php:13
eZ\Publish\Core\REST\Server\Output\ValueObjectVisitor\DeletedUserSession\visit
visit(Visitor $visitor, Generator $generator, $data)
Visit struct returned by controllers.
Definition: Output/ValueObjectVisitor/DeletedUserSession.php:21
eZ\Publish\Core\REST\Server\Output\ValueObjectVisitor\NoContent
NoContent Value object visitor.
Definition: Output/ValueObjectVisitor/NoContent.php:17
eZ\Publish\Core\REST\Server\Output\ValueObjectVisitor
Definition: Output/ValueObjectVisitor/BadRequestException.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.