Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alcalyn/flush-on-kernel-terminate-bundle

Just add a listener to automatically flush non-flushed entities after the response has been sent.
https://github.com/alcalyn/flush-on-kernel-terminate-bundle

Last synced: 4 days ago
JSON representation

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

Awesome Lists containing this project

README

        

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

### Step 1: Download using composer

``` js
{
"require": {
"alcalyn/flush-on-kernel-terminate": "1.x"
}
}
```

Update your composer.

``` bash
php composer.phar update
```

### Step 2: Register the Bundle

``` php