ConfigurationService
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.
Table of Contents
Methods
- serialize() : string
- makeSerializable() : array<string|int, mixed>
- Recursively substitute file objects with their array representation.
Methods
serialize()
public
serialize(array<string|int, mixed> $configuration) : string
Parameters
- $configuration : array<string|int, mixed>
Return values
stringmakeSerializable()
Recursively substitute file objects with their array representation.
protected
makeSerializable(array<string|int, mixed> $configuration) : array<string|int, mixed>
Parameters
- $configuration : array<string|int, mixed>