Out of memory error in symfony

前端 未结 6 1874
心在旅途
心在旅途 2020-12-10 12:18

I\'m currently working on Symfony project (const VERSION =\'2.5.10\') and I am using xampp. PHP version is 5.5.19.

My problem is everytime I run my dev environment I

6条回答
  •  无人及你
    2020-12-10 12:57

    The most eager component in Symfony is a profiler. If you don't need profiler in some particular actions you can disable it via code:

    if ($this->container->has('profiler'))
    {
        $this->container->get('profiler')->disable();
    }
    

    You can also set global parameter in config:

    framework:
        profiler:
            collect: false
    

提交回复
热议问题