Provider
Source
File: src/Community_Tickets/Tickets/Commerce/Admin/Provider.php
class Provider extends \tad_DI52_ServiceProvider { /** * Register implementations. * * @since 4.8.4 */ public function register() { $this->register_hooks(); $this->container->singleton( Settings::class ); } /** * Add hooks. * * @since 4.8.4 */ public function register_hooks() { $hooks = new Hooks( $this->container ); $hooks->register(); // Allow Hooks to be removed, by having them registered to the container $this->container->singleton( Hooks::class, $hooks ); } }
Methods
- register — Register implementations.
- register_hooks — Add hooks.