andrewcarteruk / nomoreleaksbundle
一款使用激光和忍者星消除内存泄漏的Symfony扩展包
v0.1.0
2016-12-01 23:36 UTC
Requires
- php: >=5.4.0
- symfony/dependency-injection: ~2.7|~3.0
- symfony/http-kernel: ~2.7|~3.0
- symfony/yaml: ~2.7|~3.0
This package is auto-updated.
Last update: 2024-09-19 14:01:42 UTC
README
此扩展包旨在简化在开发模式下运行Symfony框架,同时避免内存泄漏。目前主要针对Monolog和Doctrine中的内存泄漏。
为了澄清,该软件解决的是内存泄漏问题,而不是蔬菜的漏出。后者对软件开发者来说通常问题不大。
安装
使用 composer 安装
composer require andrewcarteruk/nomoreleaksbundle
添加到 AppKernel.php
// app/AppKernel.php // ... class AppKernel extends Kernel { public function registerBundles() { $bundles = array( // ... new AndrewCarterUK\NoMoreLeaksBundle\NoMoreLeaksBundle(), ); // ... } // ...
配置
no_more_leaks: ~
与以下相同
no_more_leaks: doctrine: ~ monolog: ~
与以下相同
no_more_leaks: doctrine: enabled: true managers: - default monolog: enabled: true channels: - app