forked from shopware/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PlatformRequest.php
68 lines (58 loc) · 2.12 KB
/
PlatformRequest.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php declare(strict_types=1);
namespace Shopware\Core;
final class PlatformRequest
{
/**
* Response Headers
*/
public const HEADER_FRAME_OPTIONS = 'x-frame-options';
/**
* Context headers
*/
public const HEADER_CONTEXT_TOKEN = 'sw-context-token';
public const HEADER_ACCESS_KEY = 'sw-access-key';
public const HEADER_LANGUAGE_ID = 'sw-language-id';
public const HEADER_CURRENCY_ID = 'sw-currency-id';
public const HEADER_INHERITANCE = 'sw-inheritance';
public const HEADER_VERSION_ID = 'sw-version-id';
public const HEADER_INCLUDE_SEO_URLS = 'sw-include-seo-urls';
public const HEADER_SKIP_TRIGGER_FLOW = 'sw-skip-trigger-flow';
/**
* Sync controller headers
*/
public const HEADER_FAIL_ON_ERROR = 'fail-on-error';
public const HEADER_SINGLE_OPERATION = 'single-operation';
public const HEADER_INDEXING_BEHAVIOR = 'indexing-behavior';
public const HEADER_INDEXING_SKIP = 'indexing-skip';
/**
* This header is used in the administration to get all fields
*/
public const HEADER_IGNORE_DEPRECATIONS = 'sw-api-compatibility';
/**
* API Expectation headers to check requirements are fulfilled
*/
public const HEADER_EXPECT_PACKAGES = 'sw-expect-packages';
/**
* Context attributes
*/
public const ATTRIBUTE_CONTEXT_OBJECT = 'sw-context';
public const ATTRIBUTE_SALES_CHANNEL_CONTEXT_OBJECT = 'sw-sales-channel-context';
public const ATTRIBUTE_SALES_CHANNEL_ID = 'sw-sales-channel-id';
public const ATTRIBUTE_ROUTE_SCOPE = '_routeScope';
public const ATTRIBUTE_CONTEXT_TOKEN_REQUIRED = '_contextTokenRequired';
public const ATTRIBUTE_LOGIN_REQUIRED = '_loginRequired';
/**
* CSP
*/
public const ATTRIBUTE_CSP_NONCE = '_cspNonce';
/**
* OAuth attributes
*/
public const ATTRIBUTE_OAUTH_ACCESS_TOKEN_ID = 'oauth_access_token_id';
public const ATTRIBUTE_OAUTH_CLIENT_ID = 'oauth_client_id';
public const ATTRIBUTE_OAUTH_USER_ID = 'oauth_user_id';
public const ATTRIBUTE_OAUTH_SCOPES = 'oauth_scopes';
private function __construct()
{
}
}