class ServiceProvider implements ExtenderInterface

Methods

register(string $serviceProviderClass)

<p>Register a service provider.</p>

extend(Container $container, Extension $extension = null)

No description

Details

ServiceProvider register(string $serviceProviderClass)

<p>Register a service provider.</p>

<p>Service providers are an advanced feature and might give access to Flarum internals that do not come with backward compatibility. Please read our documentation about service providers for recommendations.</p>

Parameters

string $serviceProviderClass <p>The ::class attribute of the service provider class.</p>

Return Value

ServiceProvider

See also

https://docs.flarum.org/extend/service-provider/

extend(Container $container, Extension $extension = null)

Parameters

Container $container
Extension $extension