PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 2.33.5
GiveWP – Donation Plugin and Fundraising Platform v2.33.5
4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 2.31.0 2.31.1 All 253 releases
give / src / Framework / Http / ServiceProvider.php

ServiceProvider.php in GiveWP – Donation Plugin and Fundraising Platform 2.33.5, at src/Framework/Http/ServiceProvider.php

37 lines 754 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Give\Framework\Http;
4
5 use Give\Framework\Http\ConnectServer\Client\ConnectClient;
6 use Give\ServiceProviders\ServiceProvider as ServiceProviderInterface;
7
8 /**
9 * @since 2.25.0
10 */
11 class ServiceProvider implements ServiceProviderInterface
12 {
13
14 /**
15 * @inheritDoc
16 * @since 2.25.0
17 */
18 public function register()
19 {
20 give()->singleton(ConnectClient::class, static function () {
21 $giveConnectUrl = (defined('GIVE_CONNECT_URL') && GIVE_CONNECT_URL)
22 ? GIVE_CONNECT_URL
23 : 'https://connect.givewp.com';
24
25 return new ConnectClient($giveConnectUrl);
26 });
27 }
28
29 /**
30 * @inheritDoc
31 * @since 2.25.0
32 */
33 public function boot()
34 {
35 }
36 }
37