PluginProbe ʕ •ᴥ•ʔ
Pods – Custom Content Types and Fields / 2.8.23.4
Pods – Custom Content Types and Fields v2.8.23.4
2.7.31.4 2.8.23.5 2.9.19.5 3.0.10.5 3.1.4.3 3.2.8.4 3.3.9.2 2.8.23.4 2.9.19.4 3.0.10.4 3.1.4.2 3.2.8.3 3.3.9.1 trunk 1.14.8 2.7.31.3 2.8.23.3 2.9.19.3 3.0.10.3 3.1.4.1 3.2.0 3.2.1 3.2.1.1 3.2.2 3.2.4 3.2.5 3.2.6 3.2.7 3.2.7.1 3.2.8 3.2.8.1 3.2.8.2 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9
pods / src / Pods / Service_Provider.php
pods / src / Pods Last commit date
API 2 weeks ago Admin 2 weeks ago Blocks 2 weeks ago CLI 2 weeks ago Data 2 weeks ago Integrations 2 weeks ago REST 2 weeks ago Theme 2 weeks ago Whatsit 2 weeks ago Integration.php 2 weeks ago Permissions.php 2 weeks ago Service_Provider.php 2 weeks ago Static_Cache.php 2 weeks ago Whatsit.php 2 weeks ago Wisdom_Tracker.php 2 weeks ago
Service_Provider.php
40 lines
1 <?php
2
3 namespace Pods;
4
5 use Pods\Data\Map_Field_Values;
6 use Pods\Theme\WP_Query_Integration;
7
8 use tad_DI52_ServiceProvider;
9
10 /**
11 * Class Service_Provider
12 *
13 * @since 2.8.0
14 */
15 class Service_Provider extends tad_DI52_ServiceProvider {
16
17 /**
18 * Registers the classes and functionality needed.
19 *
20 * @since 2.8.0
21 */
22 public function register() {
23 $this->container->singleton( Permissions::class, Permissions::class );
24 $this->container->singleton( Map_Field_Values::class, Map_Field_Values::class );
25 $this->container->singleton( WP_Query_Integration::class, WP_Query_Integration::class );
26 $this->container->singleton( Static_Cache::class, Static_Cache::class );
27
28 $this->hooks();
29 }
30
31 /**
32 * Hooks all the methods and actions the class needs.
33 *
34 * @since 2.8.0
35 */
36 protected function hooks() {
37 add_action( 'init', $this->container->callback( WP_Query_Integration::class, 'hook' ), 20 );
38 }
39 }
40