Skip to content

Lazy loaded Swift_Message can cause unserialize errors when using file spool #117

Closed
@mekras

Description

@mekras

When storing message in file it will be serialized with class name like Swift_Message_000000003b027a18000000005cb90b1f. After container rebuild this name will change. So if cache was cleared after message stored but before swiftmailer:spool:send command executed there will be error Catchable Fatal Error: Argument 1 passed to Swift_Transport_MailTransport::send() must implement interface Swift_Mime_Message, instance of __PHP_Incomplete_Class given.

This is a rare but troublesome case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions