| 1 |
<?php |
| 2 |
|
| 3 |
namespace Give\ServiceProviders; |
| 4 |
|
| 5 |
/** |
| 6 |
* Interface ServiceProvider |
| 7 |
* |
| 8 |
* For use when defining Service Providers, see the method docs for when to use them |
| 9 |
* |
| 10 |
* @since 2.8.0 |
| 11 |
*/ |
| 12 |
interface ServiceProvider |
| 13 |
{ |
| 14 |
/** |
| 15 |
* Registers the Service Provider within the application. Use this to bind anything to the |
| 16 |
* Service Container. This prepares the service. |
| 17 |
* |
| 18 |
* @since 2.8.0 |
| 19 |
* |
| 20 |
* @return void |
| 21 |
*/ |
| 22 |
public function register(); |
| 23 |
|
| 24 |
/** |
| 25 |
* The bootstraps the service after all of the services have been registered. The importance of this |
| 26 |
* is that any cross service dependencies should be resolved by this point, so it should be safe to |
| 27 |
* bootstrap the service. |
| 28 |
* |
| 29 |
* @since 2.8.0 |
| 30 |
* |
| 31 |
* @return void |
| 32 |
*/ |
| 33 |
public function boot(); |
| 34 |
} |
| 35 |
|