PluginProbe
Depicter — Popup & Slider Builder / 1.9.2
Depicter — Popup & Slider Builder v1.9.2
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
← All changes | app/src/DataSources/ServiceProvider.php +53 -1 1.3.21.9.2 View file →
@@ -1,9 +1,18 @@
1 1 <?php
2 2 namespace Depicter\DataSources;
3 3
4 +use Depicter\DataSources\Tags\ACF;
5 +use Depicter\DataSources\Tags\Catalog;
6 +use Depicter\DataSources\Tags\Legacy;
7 +use Depicter\DataSources\Tags\Post;
8 +use Depicter\DataSources\Tags\MetaBoxIO;
9 +use Depicter\DataSources\Tags\MetaFields;
10 +use Depicter\DataSources\Tags\Product;
11 +use Depicter\DataSources\Tags\Taxonomy;
4 12 use WPEmerge\ServiceProviders\ServiceProviderInterface;
5 13
14 +
6 15 class ServiceProvider implements ServiceProviderInterface
7 16 {
8 17 /**
9 18 * {@inheritDoc}
@@ -16,8 +25,9 @@
16 25 return new Manager();
17 26 };
18 27 $app->alias( 'dataSource', 'depicter.dataSources.dataSource' );
19 28
29 +
20 30 // register posts dataSource
21 31 $container[ 'depicter.dataSources.posts' ] = function () {
22 32 return new Posts();
23 33 };
@@ -26,11 +36,53 @@
26 36 $container[ 'depicter.dataSources.products' ] = function () {
27 37 return new Products();
28 38 };
29 39
30 - // register hand picked products dataSource
40 + // register handpicked products dataSource
31 41 $container[ 'depicter.dataSources.handPickedProducts' ] = function () {
32 42 return new HandPickedProducts();
43 + };
44 +
45 + // register catalog dataSource
46 + $container[ 'depicter.dataSources.catalogs' ] = function () {
47 + return new Catalogs();
48 + };
49 +
50 + // dynamic tag modules
51 + $container[ 'depicter.dataSources.tags.manager' ] = function () {
52 + return new \Depicter\DataSources\Tags\Manager();
53 + };
54 +
55 + $container[ 'depicter.dataSources.tags.legacy' ] = function () {
56 + return new Legacy();
57 + };
58 +
59 + $container[ 'depicter.dataSources.tags.post' ] = function () {
60 + return new Post();
61 + };
62 +
63 + $container[ 'depicter.dataSources.tags.taxonomy' ] = function () {
64 + return new Taxonomy();
65 + };
66 +
67 + $container[ 'depicter.dataSources.tags.product' ] = function () {
68 + return new Product();
69 + };
70 +
71 + $container[ 'depicter.dataSources.tags.acf' ] = function () {
72 + return new ACF();
73 + };
74 +
75 + $container[ 'depicter.dataSources.tags.metaboxio' ] = function () {
76 + return new MetaBoxIO();
77 + };
78 +
79 + $container[ 'depicter.dataSources.tags.metafield' ] = function () {
80 + return new MetaFields();
81 + };
82 +
83 + $container[ 'depicter.dataSources.tags.catalog' ] = function () {
84 + return new Catalog();
33 85 };
34 86 }
35 87
36 88 /**