Admin
2 months ago
Assets
2 weeks ago
CLI
2 years ago
Cache
2 weeks ago
Pages
10 months ago
PostTypes
2 months ago
Posts
1 year ago
Shortcodes
1 month ago
Taxonomies
1 year ago
Templates
1 year ago
Users
2 months ago
ActionsService.php
3 years ago
CompatibilityService.php
4 months ago
CurrencyService.php
4 months ago
GoogleMapApiService.php
2 months ago
HealthService.php
2 months ago
LineItemStateService.php
2 years ago
PluginActionLinksService.php
1 year ago
PluginService.php
1 year ago
PluginServiceProvider.php
1 year ago
RecaptchaValidationService.php
2 years ago
StateService.php
7 months ago
ThemeService.php
4 months ago
ThemeServiceProvider.php
7 months ago
TranslationsServiceProvider.php
3 months ago
UpgradeNoticeService.php
1 year ago
ThemeServiceProvider.php
38 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 | $app = $container[ SURECART_APPLICATION_KEY ]; |
| 25 | $app->alias( 'theme', 'surecart.theme' ); |
| 26 | } |
| 27 | |
| 28 | /** |
| 29 | * Bootstrap the service. |
| 30 | * |
| 31 | * @param \Pimple\Container $container Service container. |
| 32 | * @return void |
| 33 | */ |
| 34 | public function bootstrap( $container ) { |
| 35 | $container['surecart.theme']->bootstrap(); |
| 36 | } |
| 37 | } |
| 38 |