CollectionTaxonomyService.php
2 years ago
StoreTaxonomyService.php
2 years ago
TaxonomyServiceProvider.php
2 years ago
TaxonomyServiceProvider.php
36 lines
| 1 | <?php |
| 2 | |
| 3 | namespace SureCart\WordPress\Taxonomies; |
| 4 | |
| 5 | use SureCartCore\ServiceProviders\ServiceProviderInterface; |
| 6 | |
| 7 | /** |
| 8 | * Register our form post type |
| 9 | */ |
| 10 | class TaxonomyServiceProvider implements ServiceProviderInterface { |
| 11 | /** |
| 12 | * {@inheritDoc} |
| 13 | * |
| 14 | * @param \Pimple\Container $container Service Container. |
| 15 | */ |
| 16 | public function register( $container ) { |
| 17 | $container['surecart.taxonommies.collection'] = function ( $container ) { |
| 18 | return new CollectionTaxonomyService(); |
| 19 | }; |
| 20 | |
| 21 | $container['surecart.taxonommies.store'] = function ( $container ) { |
| 22 | return new StoreTaxonomyService(); |
| 23 | }; |
| 24 | } |
| 25 | |
| 26 | /** |
| 27 | * {@inheritDoc} |
| 28 | * |
| 29 | * @param \Pimple\Container $container Service Container. |
| 30 | */ |
| 31 | public function bootstrap( $container ) { |
| 32 | $container['surecart.taxonommies.collection']->bootstrap(); |
| 33 | $container['surecart.taxonommies.store']->bootstrap(); |
| 34 | } |
| 35 | } |
| 36 |