‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Resource\Service\ConfigurationService Class Reference

Public Member Functions

 serialize (array $configuration)

Protected Member Functions

 makeSerializable (array $configuration)

Detailed Description

Resources can contain configurations: For example to define image dimensions or image masking. Resource configurations form part of the object identity and are used to create an object signature that itself is used to cache objects but NOT to reconstruct them. To prevent objects to be reconstructed they MUST NOT be serialized. This is why an object signature is obtained by serializing its array rather than serializing it directly. But attention...as well the objects array MUST NOT contain resource objects which could be the case when a configuration defines image masking. Here this service comes into play: it serializes any object configuration, as well those containing resources.

Definition at line 33 of file ConfigurationService.php.

Member Function Documentation

◆ makeSerializable()

TYPO3\CMS\Core\Resource\Service\ConfigurationService::makeSerializable ( array  $configuration)

Recursively substitute file objects with their array representation.

Definition at line 43 of file ConfigurationService.php.

Referenced by TYPO3\CMS\Core\Resource\Service\ConfigurationService\serialize().

◆ serialize()

TYPO3\CMS\Core\Resource\Service\ConfigurationService::serialize ( array  $configuration)