PluginProbe
Bookit — Booking & Appointment Calendar / 2.6.0.5
Bookit — Booking & Appointment Calendar v2.6.0.5
2.6.0.5 2.6.0.4 2.6.0.3 2.6.0.2 2.6.0.1 2.6.0 trunk 1.2 1.2.2 1.2.3 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 All 62 releases
bookit / src / Bookit / Gateways / StripeConnect / Provider.php

Provider.php in Bookit — Booking & Appointment Calendar 2.6.0.5, at src/Bookit/Gateways/StripeConnect/Provider.php

38 lines 733 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Bookit\Gateways\StripeConnect;
4
5 use Bookit\Contracts\Service_Provider;
6
7 /**
8 * Class Provider
9 *
10 * @since 2.5.0
11 *
12 * @package Bookit\Gateways\StripeConnect
13 */
14 class Provider extends Service_Provider {
15
16 /**
17 * @inheritDoc
18 */
19 public function register() {
20 $this->container->singleton( REST::class );
21
22 $this->register_hooks();
23 }
24
25 /**
26 * Registers the provider handling all the 1st level filters and actions for this Service Provider.
27 *
28 * @since 2.5.0
29 */
30 protected function register_hooks() {
31 $hooks = new Hooks( $this->container );
32 $hooks->register();
33
34 // Allow Hooks to be removed, by having the them registered to the container
35 $this->container->singleton( Hooks::class, $hooks );
36 }
37 }
38