Admin
2 years ago
Assets
2 years ago
Pages
3 years ago
PostTypes
3 years ago
Shortcodes
2 years ago
Sitemap
3 years ago
Templates
2 years ago
Users
3 years ago
ActionsService.php
3 years ago
CompatibilityService.php
2 years ago
HealthService.php
2 years ago
PluginService.php
3 years ago
PluginServiceProvider.php
2 years ago
RecaptchaValidationService.php
2 years ago
ThemeService.php
3 years ago
ThemeServiceProvider.php
3 years ago
TranslationsServiceProvider.php
3 years ago
ThemeServiceProvider.php
35 lines
| 1 | <?php |
| 2 | |
| 3 | namespace SureCart\WordPress; |
| 4 | |
| 5 | use SureCartCore\ServiceProviders\ServiceProviderInterface; |
| 6 | use SureCart\Models\Form; |
| 7 | |
| 8 | /** |
| 9 | * Register translations. |
| 10 | */ |
| 11 | class ThemeServiceProvider implements ServiceProviderInterface { |
| 12 | |
| 13 | /** |
| 14 | * Register all dependencies in the IoC container. |
| 15 | * |
| 16 | * @param \Pimple\Container $container Service container. |
| 17 | * @return void |
| 18 | */ |
| 19 | public function register( $container ) { |
| 20 | $container['surecart.theme'] = function() { |
| 21 | return new ThemeService(); |
| 22 | }; |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * Bootstrap the service. |
| 27 | * |
| 28 | * @param \Pimple\Container $container Service container. |
| 29 | * @return void |
| 30 | */ |
| 31 | public function bootstrap( $container ) { |
| 32 | $container['surecart.theme']->bootstrap(); |
| 33 | } |
| 34 | } |
| 35 |