class MmaScrapersServiceProvider extends ServiceProvider (View source)

MmaScrapersServiceProvider is a Laravel service provider that registers the HTTP client implementation for the MMA Scrapers project.

This service provider binds the HttpClientInterface to a concrete implementation (DefaultHttpClient) in the Laravel service container. It checks if there is already a binding for the HttpClientInterface before registering the default implementation, allowing for flexibility and customization by users of the package. The boot method can be used to perform any additional setup or configuration needed when the service provider is loaded, such as publishing configuration files or setting up event listeners. Overall, this class serves as the entry point for integrating the MMA Scrapers package with a Laravel application, ensuring that the necessary dependencies are properly registered and available for use throughout the application.

Methods

void
register()

Register the service provider.

void
boot()

No description

Details

void register()

Register the service provider.

Return Value

void

void boot()

No description

Return Value

void