File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919use Throwable ;
2020use function count ;
2121use function fwrite ;
22+ use function ini_set ;
2223use function is_array ;
2324use function sprintf ;
2425use function time ;
@@ -56,6 +57,8 @@ public static function getReflectionClasses(): array
5657 */
5758 public static function executeBuild (?LoggerInterface $ logger = null ): int
5859 {
60+ ini_set ('memory_limit ' , '1G ' );
61+
5962 /** @var list<class-string<BuildStep>> $buildSteps */
6063 $ buildSteps = [];
6164 foreach (BuildTools::parseClassHierarchy (ProjectGlobals::getProjectRoot () . '/src ' ) as $ class ) {
Original file line number Diff line number Diff line change @@ -26,8 +26,6 @@ class ServiceLocator implements BuildStep
2626{
2727 public static function build (BuildContext $ context ): void
2828 {
29- ini_set ('memory_limit ' , '1G ' );
30-
3129 // 1. Initialize the Standalone Container Builder
3230 $ builder = new ContainerBuilder ();
3331
You can’t perform that action at this time.
0 commit comments