alcalyn/flush-on-kernel-terminate-bundle
Just execute EntityManager::flush() on kernel terminate.
If an entity can wait before to be flushed, don't flush it, and let this bundle to flush it after the response has been sent.
{
"require": {
"alcalyn/flush-on-kernel-terminate": "1.x"
}
}
Update your composer.
php composer.phar update
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Alcalyn\FlushOnKernelTerminateBundle\AlcalynFlushOnKernelTerminateBundle(),
);
}
This bundle is under the MIT license. See the complete license:
How can I help you explore Laravel packages today?