Replies: 1 comment 1 reply
-
My current solution is this in the package but feels hacky af. if (! ($this->app instanceof CachesConfiguration && $this->app->configurationIsCached())) {
/** @var Repository $config */
$config = $this->app->make('config');
$alreadyRegisteredExtensions = $config->get('scramble.extensions', []);
$config->set('scramble.extensions', [
...$alreadyRegisteredExtensions,
RuleToSchemaExtension::class
]);
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Related to #189
Hello,
this use case might be a little bit special but I am going to propose it nevertheless.
I am trying to register extensions via the DI container as this would allow me to create a base package with all my custom extensions. What do you think about it?
Beta Was this translation helpful? Give feedback.
All reactions