Skip to content

Commit 6525ef7

Browse files
committed
remove builder customizer
1 parent 3dde479 commit 6525ef7

1 file changed

Lines changed: 1 addition & 14 deletions

File tree

src/SPC/builder/BuilderProvider.php

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)