SvgTypeCheck

class \TYPO3\CMS\Core\Resource\Security\SvgTypeCheck

Attributes

#[Autoconfigure]
$public: true

Table of Contents

Constants

MIME_TYPES  : mixed = ['image/svg', 'image/svg+xml', 'application/svg...

Properties

$fileExtensions  : string[]
$mimeTypeDetector  : MimeTypeDetector

Methods

__construct()  : mixed
forFilePath()  : bool
forResource()  : bool
resolveFileExtensions()  : string[]

Constants

MIME_TYPES

protected mixed MIME_TYPES = ['image/svg', 'image/svg+xml', 'application/svg', 'application/svg+xml']

Properties

$fileExtensions

protected string[] $fileExtensions

Methods

forFilePath()

public forFilePath(string $filePath) : bool

Parameters

$filePath : string

Return values

bool

resolveFileExtensions()

protected resolveFileExtensions() : string[]

Return values

string[]
On this page