‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Security\ContentSecurityPolicy\Scope Class Reference
Inheritance diagram for TYPO3\CMS\Core\Security\ContentSecurityPolicy\Scope:

Public Member Functions

 __toString ()
 isFrontendSite ()
 jsonSerialize ()

Static Public Member Functions

static backend ()
static frontend ()
static frontendSite (?SiteInterface $site)
static frontendSiteIdentifier (string $siteIdentifier)
static from (string $value)
static reset ()
static tryFrom (string $value)

Public Attributes

readonly Site $site

Private Member Functions

 __construct (public readonly ApplicationType $type, public readonly ?string $siteIdentifier=null, ?Site $site=null,)

Static Private Member Functions

static asSingleton (self $self)

Static Private Attributes

static array $singletons = []

Detailed Description

Representation of a specific application type scope (backend, frontend), which can optionally be enriched by site-related details.

Definition at line 29 of file Scope.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Security\ContentSecurityPolicy\Scope::__construct ( public readonly ApplicationType  $type,
public readonly ?string  $siteIdentifier = null,
?Site  $site = null 

Use static functions to create singleton instances.

Definition at line 109 of file Scope.php.

References TYPO3\CMS\Core\Security\ContentSecurityPolicy\Scope\$site.

Member Function Documentation

◆ __toString()

TYPO3\CMS\Core\Security\ContentSecurityPolicy\Scope::__toString ( )

Definition at line 117 of file Scope.php.

References TYPO3\CMS\Webhooks\Message\$siteIdentifier.

◆ asSingleton()

◆ backend()

◆ from()

◆ frontend()

◆ frontendSite()

◆ frontendSiteIdentifier()

◆ isFrontendSite()

TYPO3\CMS\Core\Security\ContentSecurityPolicy\Scope::isFrontendSite ( )

◆ jsonSerialize()

TYPO3\CMS\Core\Security\ContentSecurityPolicy\Scope::jsonSerialize ( )

Definition at line 131 of file Scope.php.

◆ reset()

static TYPO3\CMS\Core\Security\ContentSecurityPolicy\Scope::reset ( )

◆ tryFrom()

static TYPO3\CMS\Core\Security\ContentSecurityPolicy\Scope::tryFrom ( string  $value)

Member Data Documentation

◆ $singletons

array TYPO3\CMS\Core\Security\ContentSecurityPolicy\Scope::$singletons = []

Definition at line 34 of file Scope.php.

◆ $site

readonly Site TYPO3\CMS\Core\Security\ContentSecurityPolicy\Scope::$site
‪actually just @internal - but it might be removed later

Definition at line 39 of file Scope.php.

Referenced by TYPO3\CMS\Core\Security\ContentSecurityPolicy\Scope\__construct(), and TYPO3\CMS\Core\Security\ContentSecurityPolicy\Scope\frontendSite().