File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,16 +20,6 @@ class BuilderProvider
2020{
2121 private static ?BuilderBase $ builder = null ;
2222
23- private static ?\Closure $ customizeBuilder = null ;
24-
25- /**
26- * @param \Closure(BuilderBase): void $callback
27- */
28- public static function customize (\Closure $ callback ): void
29- {
30- self ::$ customizeBuilder = $ callback ;
31- }
32-
3323 /**
3424 * @throws FileSystemException
3525 * @throws RuntimeException
@@ -46,10 +36,7 @@ public static function makeBuilderByInput(InputInterface $input): BuilderBase
4636 'BSD ' => new BSDBuilder ($ input ->getOptions ()),
4737 default => throw new WrongUsageException ('Current OS " ' . PHP_OS_FAMILY . '" is not supported yet ' ),
4838 };
49- // allow to add/customize builder instance early
50- if (self ::$ customizeBuilder ) {
51- call_user_func_array (self ::$ customizeBuilder , [&self ::$ builder ]);
52- }
39+
5340 return self ::$ builder ;
5441 }
5542
You can’t perform that action at this time.
0 commit comments