Skip to content

How to have none statefull Facades in 5.8 ? #27247

@imanghafoori1

Description

@imanghafoori1

Due to this Pull request : #25525
some lines of code where removed for 5.8

Since facades cache the resolved objects and keep it in memory for future calls.(to avoid re-resolving)
the facade become stateful.

if (isset(static::$resolvedInstance[$name])) {

I used to a make and return an object from the getFacadeAccessor to deal with a new instance each time I make a call to my facade.

So I feel I am missing a feature.

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