andrewcarteruk/nomoreleaksbundle

A Symfony bundle that kills memory leaks using lasers and ninja stars

v0.1.0 2016-12-01 23:36 UTC

This package is auto-updated.

Last update: 2024-10-19 14:14:27 UTC


README

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