Browse Source

ControllerTrait : setNoMemoryAndTimeLimit()

feature/symfony6.1
Guillaume 2 years ago
parent
commit
584e1b8012
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      Controller/ControllerTrait.php

+ 6
- 0
Controller/ControllerTrait.php View File

@@ -275,4 +275,10 @@ trait ControllerTrait
return $this->get(SiteSettingContainer::class);
}

public function setNoMemoryAndTimeLimit(): void
{
ini_set('memory_limit', '-1');
set_time_limit(0);
}

}

Loading…
Cancel
Save