RankMathServiceProvider.php
32 lines
| 1 | <?php |
| 2 | |
| 3 | namespace SureCart\Integrations\RankMath; |
| 4 | |
| 5 | use SureCartCore\ServiceProviders\ServiceProviderInterface; |
| 6 | |
| 7 | /** |
| 8 | * Handles the Rank Math integration. |
| 9 | */ |
| 10 | class RankMathServiceProvider implements ServiceProviderInterface { |
| 11 | /** |
| 12 | * Register all dependencies in the IoC container. |
| 13 | * |
| 14 | * @param \Pimple\Container $container Service container. |
| 15 | * @return void |
| 16 | */ |
| 17 | public function register( $container ) { |
| 18 | $container['surecart.plugins.rank_math'] = function () { |
| 19 | return new RankMathService(); |
| 20 | }; |
| 21 | } |
| 22 | |
| 23 | /** |
| 24 | * {@inheritDoc} |
| 25 | * |
| 26 | * @param \Pimple\Container $container Service Container. |
| 27 | */ |
| 28 | public function bootstrap( $container ) { |
| 29 | $container['surecart.plugins.rank_math']->bootstrap(); |
| 30 | } |
| 31 | } |
| 32 |