This website works better with JavaScript.
Home
Explore
Help
Sign In
Laclic
/
SovBundle
Watch
3
Star
0
Fork
0
Code
Issues
1
Pull Requests
0
Releases
2
Wiki
Activity
Browse Source
ControllerTrait : setNoMemoryAndTimeLimit()
feature/symfony6.1
Guillaume
2 years ago
parent
baa46e312c
commit
584e1b8012
1 changed files
with
6 additions
and
0 deletions
Split View
Show Diff Stats
+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);
}
}
Write
Preview
Loading…
Cancel
Save