Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
wp-content
/
plugins
/
the-events-calendar
/
common
/
src
/
Common
/
Admin
/
Help_Hub
:
Provider.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php /** * Provider for the Help Hub. * * Registers the required dependencies and factory for the Help Hub functionality, * allowing components such as the `Hub` class to retrieve and utilize the required * data and configuration through dependency injection. * * @since 6.3.2 * @package TEC\Common\Admin\Help_Hub */ namespace TEC\Common\Admin\Help_Hub; use TEC\Common\Admin\Help_Hub\Section_Builder\FAQ_Section_Builder; use TEC\Common\Admin\Help_Hub\Section_Builder\Link_Section_Builder; use TEC\Common\Contracts\Service_Provider; /** * Class Provider * * Registers the Help Hub logic and dependencies, allowing for easier dependency management * and a centralized setup for Help Hub-specific functionality. * * @since 6.3.2 * * @package TEC\Common\Admin\Help_Hub */ class Provider extends Service_Provider { /** * Registers the functionality related to the Help Hub. * * @since 6.3.2 * * @return void */ public function register(): void { // Register the provider instance as a singleton within the container. $this->container->singleton( self::class, $this ); $this->container->bind( Hub::class ); $this->container->bind( Link_Section_Builder::class ); $this->container->bind( FAQ_Section_Builder::class ); $this->container->bind( Tab_Builder::class ); /** * Fires when the provider is registered. * * @since 6.3.2 * * @param Provider $this The provider instance. */ do_action( 'tec_help_hub_registered', $this ); } }