PluginProbe
Stripe Payment Forms by WP Simple Pay – Accept Credit Card Payments + Subscriptions with Stripe / trunk
Stripe Payment Forms by WP Simple Pay – Accept Credit Card Payments + Subscriptions with Stripe vtrunk
4.17.3 trunk 2.2.0 2.3.0 2.3.1 2.3.2 2.3.3 2.4.0 2.4.1 2.5.0 2.5.1 2.5.2 2.5.3 2.6.0 2.6.1 2.6.2 2.6.3 4.10.0 4.11.1 4.12.2 4.14.1 4.14.2 4.14.3 4.15.0 4.16.0 All 59 releases
stripe / src / Admin / FormBuilder / FormBuilderServiceProvider.php

FormBuilderServiceProvider.php in Stripe Payment Forms by WP Simple Pay – Accept Credit Card Payments + Subscriptions with Stripe trunk, at src/Admin/FormBuilder/FormBuilderServiceProvider.php

78 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Form builder: Service provider
4 *
5 * @package SimplePay
6 * @subpackage Core
7 * @copyright Copyright (c) 2022, Sandhills Development, LLC
8 * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
9 * @since 4.4.3
10 */
11
12 namespace SimplePay\Core\Admin\FormBuilder;
13
14 use SimplePay\Core\AbstractPluginServiceProvider;
15
16 /**
17 * FormBuilderServiceProvider class.
18 *
19 * @since 4.4.3
20 */
21 class FormBuilderServiceProvider extends AbstractPluginServiceProvider {
22
23 /**
24 * {@inheritdoc}
25 */
26 public function get_services() {
27 return array();
28 }
29
30 /**
31 * {@inheritdoc}
32 */
33 public function get_subscribers() {
34 return array(
35 'form-builder-license-check',
36 'form-builder-template-explorer',
37 'form-builder-custom-field-subscriber',
38 'form-builder-automator-integrations-importer',
39 );
40 }
41
42
43
44 /**
45 * {@inheritdoc}
46 */
47 public function register() {
48 $container = $this->getContainer();
49
50 // License check.
51 $container->share(
52 'form-builder-license-check',
53 LicenseCheck::class
54 );
55
56 // Template explorer.
57 $container->share(
58 'form-builder-template-explorer',
59 TemplateExplorer::class
60 );
61
62 // Custom field subscriber.
63 $container->share(
64 'form-builder-custom-field-subscriber',
65 CustomFieldSubscriber::class
66 );
67
68 // Uncanny Automator integrations importer for the "Automations" tab.
69 $container->share(
70 'form-builder-automator-integrations-importer',
71 AutomatorIntegrationsImporter::class
72 )
73 ->withArgument( 'https://integrations.automatorplugin.com/list.json' )
74 ->withArgument( $container->get( 'scheduler' ) );
75 }
76
77 }
78