Closed klimov-paul closed 5 years ago
SharedDataServiceProvider is better to be deferrable. It should be loaded only when \Coderello\SharedData\SharedData is requested from DI container.
SharedDataServiceProvider
\Coderello\SharedData\SharedData
This will improve application performance for such requests as REST API and console commands.
Note that deferrable service provider definition has been changed in Laravel 5.8. It might be a BC-break change.
Makes sense, fixed (#5)
SharedDataServiceProvider
is better to be deferrable. It should be loaded only when\Coderello\SharedData\SharedData
is requested from DI container.This will improve application performance for such requests as REST API and console commands.
Note that deferrable service provider definition has been changed in Laravel 5.8. It might be a BC-break change.