Closed mauri870 closed 2 years ago
Faced an issue today where attributes containing class names were not automatically instantiated when reading the config.
Example:
'attributes' => [ ['iframe', 'allowfullscreen', 'Bool'], ... ['img', 'src', \App\Purifier\CustomAttrDef::class] ],
The following works but throws an error when running artisan config:cache since it can't serialize the object in config:
'attributes' => [ ['iframe', 'allowfullscreen', 'Bool'], ... ['img', 'src', new \App\Purifier\CustomAttrDef()] ],
Faced an issue today where attributes containing class names were not automatically instantiated when reading the config.
Example:
The following works but throws an error when running artisan config:cache since it can't serialize the object in config: