[HttpKernel] release lock explicitly
This commit is contained in:
parent
b9a0b33540
commit
6fb55812ab
@ -556,7 +556,7 @@ abstract class Kernel implements KernelInterface, RebootableInterface, Terminabl
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __destruct()
|
public function release()
|
||||||
{
|
{
|
||||||
flock($this->lock, LOCK_UN);
|
flock($this->lock, LOCK_UN);
|
||||||
fclose($this->lock);
|
fclose($this->lock);
|
||||||
@ -634,7 +634,7 @@ abstract class Kernel implements KernelInterface, RebootableInterface, Terminabl
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->dumpContainer($cache, $container, $class, $this->getContainerBaseClass());
|
$this->dumpContainer($cache, $container, $class, $this->getContainerBaseClass());
|
||||||
unset($cache);
|
$cache->release();
|
||||||
$this->container = require $cachePath;
|
$this->container = require $cachePath;
|
||||||
$this->container->set('kernel', $this);
|
$this->container->set('kernel', $this);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user