# depicter/1.5.2/app/src/DataSources/ServiceProvider.php

Depicter — Popup &amp; Slider Builder, version 1.5.2. 41 lines.

- Page: https://pluginprobe.com/plugins/depicter/1.5.2/code/app/src/DataSources/ServiceProvider.php
- Raw: https://pluginprobe.com/plugins/depicter/1.5.2/raw/app/src/DataSources/ServiceProvider.php
- Modified: 2022-07-13T12:23:06+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/depicter/1.5.2/code/app/src/DataSources/ServiceProvider.php#L10-L20`.

```php
<?php
namespace Depicter\DataSources;

use WPEmerge\ServiceProviders\ServiceProviderInterface;

class ServiceProvider implements ServiceProviderInterface
{
	/**
	 * {@inheritDoc}
	 */
	public function register( $container ) {
		$app = $container[ WPEMERGE_APPLICATION_KEY ];

		// register dataSource manager
		$container[ 'depicter.dataSources.dataSource' ] = function () {
			return new Manager();
		};
		$app->alias( 'dataSource', 'depicter.dataSources.dataSource' );

		// register posts dataSource
		$container[ 'depicter.dataSources.posts' ] = function () {
			return new Posts();
		};

		// register products dataSource
		$container[ 'depicter.dataSources.products' ] = function () {
			return new Products();
		};

		// register hand picked products dataSource
		$container[ 'depicter.dataSources.handPickedProducts' ] = function () {
			return new HandPickedProducts();
		};
	}

	/**
	 * {@inheritDoc}
	 */
	public function bootstrap( $container ) {}
}

```
