alcalyn/flush-on-kernel-terminate-bundle

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

Installs: 54

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:symfony-bundle

pkg:composer/alcalyn/flush-on-kernel-terminate-bundle

v0.9.1 2014-09-02 16:13 UTC

This package is not auto-updated.

Last update: 2025-10-07 12:25:22 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:

Resources/meta/LICENSE