Skip to content

Closure in module config will cause fatal if config cache is enabled #1

@dzhibas

Description

@dzhibas

instead of putting it to module.config.php you can move all closures into Module.php methods getServiceConfig or getControllerConfig or seperate Factory class which implements FactoryInterface.

in that case application with your module will be able to cache configuration and factories with closures will be loaded in your Module.php

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