‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Security\ContentSecurityPolicy\SourceCollection Class Reference

Public Member Functions

 __construct (SourceInterface ... $sources)
 
 isEmpty ()
 
 merge (self $other)
 
 exclude (self $other)
 
 with (SourceInterface ... $subjects)
 
 without (SourceInterface ... $subjects)
 
 withoutTypes (string ... $subjectTypes)
 
 contains (SourceInterface ... $subjects)
 
 covers (SourceInterface ... $subjects)
 
 containsTypes (string ... $subjectTypes)
 

Public Attributes

readonly array $sources
 

Private Member Functions

 hasEqualSource (EqualityInterface $subject, SourceInterface ... $sources)
 
 hasCoveredSource (CoveringInterface $subject)
 
 isSourceOfTypes (SourceInterface $source, string ... $types)
 

Detailed Description

A collection of sources (sic!).

This implementation still might be adjusted

Definition at line 26 of file SourceCollection.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Security\ContentSecurityPolicy\SourceCollection::__construct ( SourceInterface ...  $sources)

Member Function Documentation

◆ contains()

TYPO3\CMS\Core\Security\ContentSecurityPolicy\SourceCollection::contains ( SourceInterface ...  $subjects)

Determines whether all sources are contained (in terms of instances and values, but without inference).

Definition at line 102 of file SourceCollection.php.

References TYPO3\CMS\Core\Security\ContentSecurityPolicy\SourceCollection\hasEqualSource().

◆ containsTypes()

TYPO3\CMS\Core\Security\ContentSecurityPolicy\SourceCollection::containsTypes ( string ...  $subjectTypes)

Determines whether at least one type matches.

Parameters
class-string‪...$subjectTypes

Definition at line 143 of file SourceCollection.php.

References TYPO3\CMS\Core\Security\ContentSecurityPolicy\SourceCollection\isSourceOfTypes().

◆ covers()

TYPO3\CMS\Core\Security\ContentSecurityPolicy\SourceCollection::covers ( SourceInterface ...  $subjects)

Determines whether all sources are covered (in terms of CSP inference, considering wildcards and similar).

Definition at line 122 of file SourceCollection.php.

References TYPO3\CMS\Core\Security\ContentSecurityPolicy\SourceCollection\hasCoveredSource().

◆ exclude()

TYPO3\CMS\Core\Security\ContentSecurityPolicy\SourceCollection::exclude ( self  $other)

◆ hasCoveredSource()

TYPO3\CMS\Core\Security\ContentSecurityPolicy\SourceCollection::hasCoveredSource ( CoveringInterface  $subject)
private

◆ hasEqualSource()

◆ isEmpty()

TYPO3\CMS\Core\Security\ContentSecurityPolicy\SourceCollection::isEmpty ( )

◆ isSourceOfTypes()

TYPO3\CMS\Core\Security\ContentSecurityPolicy\SourceCollection::isSourceOfTypes ( SourceInterface  $source,
string ...  $types 
)
private

◆ merge()

TYPO3\CMS\Core\Security\ContentSecurityPolicy\SourceCollection::merge ( self  $other)

◆ with()

TYPO3\CMS\Core\Security\ContentSecurityPolicy\SourceCollection::with ( SourceInterface ...  $subjects)

◆ without()

◆ withoutTypes()

TYPO3\CMS\Core\Security\ContentSecurityPolicy\SourceCollection::withoutTypes ( string ...  $subjectTypes)

Member Data Documentation

◆ $sources