Skip to content

DI Container unable to use set() when caching #1

@webdevlabs

Description

@webdevlabs

This issue is described at http://php-di.org/doc/php-definitions.html as
Be also aware that it isn't possible to add definitions to a container on the fly when using a cache
Phreak! uses caching for the Router inside a Dependency Injection Container, so all routes are resolved inside the cached container.
Thats why Phreak! stands above the other frameworks in the SPEED competition.
This voids to the described issue. However it's only a problem if you want to use $container->set() function inside your scripts.

SOLUTION: You can manualy modify and disable the Router resolver behaviour from system/RouterResolver.php.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions