Skip to content

A non-serializable definition could be nested in a CacheableDefinition #297

@mnapoli

Description

@mnapoli

Example:

    'foo' => \DI\object()
        ->constructor(DI\factory(
                function (ContainerInterface $c) {
                    return ...;
                }
            ));

DI\object() is cacheable, but it contains a non-serializable nested definition.

CacheableDefinition will probably need to be removed and replaced with an method in Definition, e.g. isCacheable().

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions