ImageServiceProvider.php
36 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @package SureCartAppCore |
| 4 | * @author SureCart <support@surecart.com> |
| 5 | * @copyright SureCart |
| 6 | * @license https://www.gnu.org/licenses/gpl-2.0.html GPL-2.0 |
| 7 | * @link https://surecart.com |
| 8 | */ |
| 9 | |
| 10 | namespace SureCartAppCore\Image; |
| 11 | |
| 12 | use SureCartCore\ServiceProviders\ServiceProviderInterface; |
| 13 | |
| 14 | /** |
| 15 | * Provide image dependencies. |
| 16 | * |
| 17 | * @codeCoverageIgnore |
| 18 | */ |
| 19 | class ImageServiceProvider implements ServiceProviderInterface { |
| 20 | /** |
| 21 | * {@inheritDoc} |
| 22 | */ |
| 23 | public function register( $container ) { |
| 24 | $container['surecart_app_core.image.image'] = function() { |
| 25 | return new Image(); |
| 26 | }; |
| 27 | } |
| 28 | |
| 29 | /** |
| 30 | * {@inheritDoc} |
| 31 | */ |
| 32 | public function bootstrap( $container ) { |
| 33 | // Nothing to bootstrap. |
| 34 | } |
| 35 | } |
| 36 |