Skip to content

Commit 7b006d1

Browse files
committed
Added "configureOptions()"
1 parent 97ccbe9 commit 7b006d1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/CodeTransformerKernel.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ public static function init(): void
152152

153153
// Initialize the services
154154
$instance->preInit();
155+
$instance->configureOptions();
155156
$instance->registerServices();
156157
$instance->registerAutoloadInterceptor();
157158

@@ -187,6 +188,16 @@ protected function preInit(): void
187188
$this->transformerManager->addTransformers($this->transformers);
188189
}
189190

191+
/**
192+
* Configure or modify kernel options.
193+
*
194+
* @return void
195+
*/
196+
protected function configureOptions(): void
197+
{
198+
// Override this method to configure the options dynamically
199+
}
200+
190201
/**
191202
* Register the services.
192203
*

0 commit comments

Comments
 (0)