PHPackages                             alcalyn/flush-on-kernel-terminate-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. alcalyn/flush-on-kernel-terminate-bundle

ActiveSymfony-bundle

alcalyn/flush-on-kernel-terminate-bundle
========================================

Just add a listener to automatically flush non-flushed entities after the response has been sent.

v0.9.1(11y ago)054MITPHPPHP &gt;=5.3.2

Since Aug 21Pushed 11y agoCompare

[ Source](https://github.com/alcalyn/flush-on-kernel-terminate-bundle)[ Packagist](https://packagist.org/packages/alcalyn/flush-on-kernel-terminate-bundle)[ Docs](http://github.com/alcalyn/flush-on-kernel-terminate-bundle)[ RSS](/packages/alcalyn-flush-on-kernel-terminate-bundle/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

FlushOnKernelTerminateBundle
============================

[](#flushonkernelterminatebundle)

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
------------

[](#installation)

### Step 1: Download using composer

[](#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

[](#step-2-register-the-bundle)

```
