8000 [HttpKernel] release lock explicitly · symfony/symfony@6fb5581 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6fb5581

Browse files
[HttpKernel] release lock explicitly
1 parent b9a0b33 commit 6fb5581

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/HttpKernel/Kernel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ public function write($content, array $metadata = null)
556556
}
557557
}
558558

559-
public function __destruct()
559+
public function release()
560560
{
561561
flock($this->lock, LOCK_UN);
562562
fclose($this->lock);
@@ -634,7 +634,7 @@ public function __destruct()
634634
}
635635

636636
$this->dumpContainer($cache, $container, $class, $this->getContainerBaseClass());
637-
unset($cache);
637+
$cache->release();
638638
$this->container = require $cachePath;
639639
$this->container->set('kernel', $this);
640640

0 commit comments

Comments
 (0)
0