Skip to content
This repository was archived by the owner on Jul 16, 2021. It is now read-only.
This repository was archived by the owner on Jul 16, 2021. It is now read-only.

[Proposal] Lazy loading services when using dependency injection #1436

@vv12131415

Description

@vv12131415

The why do we need it can be found here (tl;dr to not (fully) construct objects with dependency injection container when we don't use them, to defer their resolve to the moment when we will need them)

The idea is to implement something that will be similar to

The zend version and symfony uses the https://github.com/Ocramius/ProxyManager to achieve the goal

Some of the ideas of how to implement it in laravel you can see here (they are kinda old, but still )

How it was implemented in symfony and zend (the PRs)

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