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

Controller/Options.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Publish\Core\REST\Server\Controller;
8
9 use eZ\Publish\Core\REST\Server\Values;
10 use eZ\Publish\Core\REST\Server\Controller as RestController;
11
15 class Options extends RestController
16 {
24 public function getRouteOptions($allowedMethods)
25 {
26 return new Values\Options(explode(',', $allowedMethods));
27 }
28 }
eZ\Publish\Core\REST\Server\Controller\Options
Root controller.
Definition: Controller/Options.php:16
eZ\Publish\Core\REST\Server\Controller\Options\getRouteOptions
getRouteOptions($allowedMethods)
Lists the verbs available for a resource.
Definition: Controller/Options.php:24
eZ\Publish\Core\REST\Server\Values\Options
Struct representing a resource OPTIONS response.
Definition: Values/Options.php:15
eZ\Publish\Core\REST\Server\Controller
Definition: BinaryContent.php:7
eZ\Publish\Core\REST\Server\Values
Definition: Core/REST/Server/Values/BookmarkList.php:9
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.