Skip to content

Commit

Permalink
Remove set of 'application' service
Browse files Browse the repository at this point in the history
This causes memory leak
  • Loading branch information
Jeckerson committed Aug 15, 2023
1 parent 302c38d commit 05589ec
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions phalcon/Mvc/Micro.zep
Original file line number Diff line number Diff line change
Expand Up @@ -1142,13 +1142,6 @@ class Micro extends Injectable implements ArrayAccess, EventsAwareInterface
*/
public function setDI(<DiInterface> container) -> void
{
/**
* We automatically set ourselves as application service
*/
if !container->has("application") {
container->set("application", this);
}

let this->container = container;
}

Expand Down

0 comments on commit 05589ec

Please sign in to comment.