alcalyn / flush-on-kernel-terminate-bundle
Just add a listener to automatically flush non-flushed entities after the response has been sent.
Installs: 51
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.2
- symfony/symfony: 2.x
This package is not auto-updated.
Last update: 2024-11-19 07:55:37 UTC
README
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.
Installation
Step 1: Download using composer
{ "require": { "alcalyn/flush-on-kernel-terminate": "1.x" } }
Update your composer.
php composer.phar update
Step 2: Register the Bundle
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Alcalyn\FlushOnKernelTerminateBundle\AlcalynFlushOnKernelTerminateBundle(), ); }
License
This bundle is under the MIT license. See the complete license: