API
2 days ago
Admin
2 days ago
Blocks
2 days ago
CLI
2 days ago
Data
2 days ago
Integrations
2 days ago
REST
2 days ago
Theme
2 days ago
Whatsit
2 days ago
Integration.php
2 days ago
Permissions.php
2 days ago
Service_Provider.php
2 days ago
Static_Cache.php
2 days ago
Whatsit.php
2 days ago
Wisdom_Tracker.php
2 days 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 |