PluginProbe
Depicter — Popup & Slider Builder / trunk
Depicter — Popup & Slider Builder vtrunk
4.8.1 trunk 1.0.0 1.1.0 1.1.2 1.1.4 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.5 1.3.8 1.5.0 1.5.1 1.5.2 1.5.5 1.6.0 1.6.1 1.6.2 1.7.0 All 76 releases
depicter / app / src / Integration / ServiceProvider.php

ServiceProvider.php in Depicter — Popup & Slider Builder trunk, at app/src/Integration/ServiceProvider.php

39 lines 782 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Depicter\Integration;
3
4 use Depicter\Integration\MailChimp\MailChimp;
5 use Depicter\Integration\Manager;
6 use WPEmerge\ServiceProviders\ServiceProviderInterface;
7
8 /**
9 * Load document data manager.
10 */
11 class ServiceProvider implements ServiceProviderInterface {
12
13 /**
14 * {@inheritDoc}
15 */
16 public function register( $container ) {
17 $app = $container[ WPEMERGE_APPLICATION_KEY ];
18
19 $container[ 'depicter.integration.manager' ] = function () {
20 return new Manager();
21 };
22
23 $app->alias( 'integration', 'depicter.integration.manager' );
24
25 $container[ 'depicter.integration.mailchimp' ] = function () {
26 return new MailChimp();
27 };
28
29 }
30
31 /**
32 * {@inheritDoc}
33 */
34 public function bootstrap( $container ) {
35 \Depicter::integration()->init();
36 }
37
38 }
39