PluginProbe
Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification / 5.12.0
Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification v5.12.0
5.12.0 5.13.0 5.13.1 5.11.0 5.10.0 5.9.0 5.8.0 5.8.1 5.7.0 5.6.2 5.6.3 5.6.1 5.6.0 5.5.0 5.4.0 5.3.2 5.3.1 5.1.6 5.1.5 trunk 2.1.5 2.11 2.12 2.13 2.15 All 47 releases
double-opt-in / src / Providers / HelpServiceProvider.php

HelpServiceProvider.php in Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification 5.12.0, at src/Providers/HelpServiceProvider.php

43 lines 899 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Help Service Provider — in-plugin documentation.
4 *
5 * @package Forge12\DoubleOptIn\Providers
6 * @since 5.11.0
7 */
8
9 declare( strict_types=1 );
10
11 namespace Forge12\DoubleOptIn\Providers;
12
13 use Forge12\DoubleOptIn\Container\BootableProviderInterface;
14 use Forge12\DoubleOptIn\Container\Container;
15 use Forge12\DoubleOptIn\Help\HelpRestController;
16 use Forge12\DoubleOptIn\Help\HelpSourceLocator;
17
18 if ( ! defined( 'ABSPATH' ) ) {
19 exit;
20 }
21
22 class HelpServiceProvider implements BootableProviderInterface {
23
24 /**
25 * {@inheritdoc}
26 */
27 public function register( Container $container ): void {
28 $container->singleton(
29 HelpRestController::class,
30 static function () {
31 return new HelpRestController( new HelpSourceLocator() );
32 }
33 );
34 }
35
36 /**
37 * {@inheritdoc}
38 */
39 public function boot( Container $container ): void {
40 $container->get( HelpRestController::class )->init();
41 }
42 }
43