UserServiceProvider.php
31 lines
| 1 | <?php |
| 2 | namespace SureCart\Integrations\User; |
| 3 | |
| 4 | use SureCartCore\ServiceProviders\ServiceProviderInterface; |
| 5 | |
| 6 | /** |
| 7 | * Handles the User Service. |
| 8 | */ |
| 9 | class UserServiceProvider 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.integrations.user'] = function () { |
| 18 | return new UserService(); |
| 19 | }; |
| 20 | } |
| 21 | |
| 22 | /** |
| 23 | * {@inheritDoc} |
| 24 | * |
| 25 | * @param \Pimple\Container $container Service Container. |
| 26 | */ |
| 27 | public function bootstrap( $container ) { |
| 28 | $container['surecart.integrations.user']->bootstrap(); |
| 29 | } |
| 30 | } |
| 31 |