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 / Document / ServiceProvider.php

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

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