CustomerLinkService.php
3 years ago
UsersService.php
3 years ago
UsersServiceProvider.php
3 years ago
UsersServiceProvider.php
33 lines
| 1 | <?php |
| 2 | |
| 3 | namespace SureCart\WordPress\Users; |
| 4 | |
| 5 | use SureCartCore\ServiceProviders\ServiceProviderInterface; |
| 6 | |
| 7 | /** |
| 8 | * Provide users dependencies. |
| 9 | */ |
| 10 | class UsersServiceProvider 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.users'] = function () { |
| 19 | return new UsersService(); |
| 20 | }; |
| 21 | } |
| 22 | |
| 23 | /** |
| 24 | * Bootstrap any services if needed. |
| 25 | * |
| 26 | * @param \Pimple\Container $container Service container. |
| 27 | * @return void |
| 28 | */ |
| 29 | public function bootstrap( $container ) { |
| 30 | $container['surecart.users']->bootstrap(); |
| 31 | } |
| 32 | } |
| 33 |