Skip to content

Latest commit

 

History

History
73 lines (56 loc) · 2.15 KB

README.md

File metadata and controls

73 lines (56 loc) · 2.15 KB

NoMoreLeaksBundle - No More Memory Leaks

Latest Stable Version Build Status Scrutinizer Code Quality Code Coverage License Total Downloads

This bundle has been created to make it easier to run the Symfony framework in production mode without memory leaks. It currently targets memory leaks in Monolog and Doctrine.

For clarification, this software addresses memory leaks, not vegetable leeks. The latter tends to be less of a problem for software developers.

By AndrewCarterUK (Twitter)

Install

Install with composer:

composer require andrewcarteruk/nomoreleaksbundle

Add to AppKernel.php:

// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
          // ...
          new AndrewCarterUK\NoMoreLeaksBundle\NoMoreLeaksBundle(),
        );

        // ...
    }
// ...

Configure

no_more_leaks: ~

Which is the same as:

no_more_leaks:
    doctrine: ~
    monolog: ~

Which is the same as:

no_more_leaks:
    doctrine:
        enabled: true
        managers:
            - default
    monolog:
        enabled: true
        channels:
            - app