| 1 |
<?php |
| 2 |
/** |
| 3 |
* Bootable Service Provider Interface |
| 4 |
* |
| 5 |
* @package Forge12\DoubleOptIn\Container |
| 6 |
* @since 4.0.0 |
| 7 |
*/ |
| 8 |
|
| 9 |
namespace Forge12\DoubleOptIn\Container; |
| 10 |
|
| 11 |
if ( ! defined( 'ABSPATH' ) ) { |
| 12 |
exit; |
| 13 |
} |
| 14 |
|
| 15 |
/** |
| 16 |
* Interface BootableProviderInterface |
| 17 |
* |
| 18 |
* Providers implementing this interface will have their boot method called |
| 19 |
* after all providers have been registered. |
| 20 |
*/ |
| 21 |
interface BootableProviderInterface extends ServiceProviderInterface { |
| 22 |
|
| 23 |
/** |
| 24 |
* Bootstrap the service. |
| 25 |
* |
| 26 |
* Called after all providers are registered. |
| 27 |
* |
| 28 |
* @param Container $container The DI container. |
| 29 |
* |
| 30 |
* @return void |
| 31 |
*/ |
| 32 |
public function boot( Container $container ): void; |
| 33 |
} |
| 34 |
|