DataFields
2 years ago
DataObjects
3 years ago
Triggers
3 years ago
images
3 years ago
ThriveAutomatorApp.php
3 years ago
ThriveAutomatorService.php
3 years ago
ThriveAutomatorServiceProvider.php
3 years ago
ThriveAutomatorServiceProvider.php
31 lines
| 1 | <?php |
| 2 | namespace SureCart\Integrations\ThriveAutomator; |
| 3 | |
| 4 | use SureCartCore\ServiceProviders\ServiceProviderInterface; |
| 5 | |
| 6 | /** |
| 7 | * Provides the Thrive Automator service. |
| 8 | */ |
| 9 | class ThriveAutomatorServiceProvider implements ServiceProviderInterface { |
| 10 | /** |
| 11 | * Register all dependencies in the IoC container. |
| 12 | * |
| 13 | * @param \Pimple\Container $container Service container. |
| 14 | * @return void |
| 15 | */ |
| 16 | public function register( $container ) { |
| 17 | $container['surecart.thrive.automator'] = function () { |
| 18 | return new ThriveAutomatorService(); |
| 19 | }; |
| 20 | } |
| 21 | |
| 22 | /** |
| 23 | * {@inheritDoc} |
| 24 | * |
| 25 | * @param \Pimple\Container $container Service Container. |
| 26 | */ |
| 27 | public function bootstrap( $container ) { |
| 28 | add_action( 'thrive_automator_init', [ $container['surecart.thrive.automator'], 'bootstrap' ] ); |
| 29 | } |
| 30 | } |
| 31 |