PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / 2.4.8
Booking for Appointments and Events Calendar – Amelia v2.4.8
2.4.9 2.4.8 2.4.7 2.4.6 2.4.5 2.4.4 2.4.3 2.4.2 2.4.1 2.4 trunk 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 1.2.17 1.2.18 1.2.19 1.2.2 1.2.20 1.2.21 1.2.22 1.2.23 1.2.24 1.2.25 1.2.26 1.2.27 1.2.28 1.2.29 1.2.3 1.2.30 1.2.31 1.2.32 1.2.33 1.2.34 1.2.35 1.2.36 1.2.37 1.2.38 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.3
ameliabooking / src / Infrastructure / Licence / Lite / InfrastructureService.php
ameliabooking / src / Infrastructure / Licence / Lite Last commit date
ApplicationService.php 9 months ago DataModifier.php 6 months ago DomainService.php 2 years ago EventListener.php 1 year ago InfrastructureService.php 1 week ago Licence.php 1 month ago
InfrastructureService.php
206 lines
1 <?php
2
3 namespace AmeliaBooking\Infrastructure\Licence\Lite;
4
5 use AmeliaBooking\Domain\Services as DomainServices;
6 use AmeliaBooking\Infrastructure\Services as InfrastructureServices;
7 use AmeliaBooking\Infrastructure\Common\Container;
8
9 /**
10 * Class InfrastructureService
11 *
12 * @package AmeliaBooking\Infrastructure\Licence\Lite
13 */
14 class InfrastructureService
15 {
16 /**
17 * @param Container $c
18 *
19 * @return InfrastructureServices\Google\AbstractGoogleCalendarService
20 */
21 public static function getCalendarGoogleService($c)
22 {
23 return new InfrastructureServices\Google\StarterGoogleCalendarService($c);
24 }
25
26 /**
27 * @param Container $c
28 *
29 * @return InfrastructureServices\Google\AbstractGoogleCalendarMiddlewareService
30 */
31 public static function getCalendarGoogleMiddlewareService($c)
32 {
33 return new InfrastructureServices\Google\StarterGoogleCalendarMiddlewareService($c);
34 }
35
36 /**
37 * @param Container $c
38 *
39 * @return InfrastructureServices\Outlook\AbstractOutlookCalendarService
40 */
41 public static function getCalendarOutlookService($c)
42 {
43 return new InfrastructureServices\Outlook\StarterOutlookCalendarService($c);
44 }
45
46 /**
47 * @param Container $c
48 *
49 * @return InfrastructureServices\Outlook\AbstractOutlookCalendarMiddlewareService
50 */
51 public static function getOutlookCalendarMiddlewareService($c)
52 {
53 return new InfrastructureServices\Outlook\StarterOutlookCalendarMiddlewareService($c);
54 }
55
56 /**
57 * @param $c
58 * @return InfrastructureServices\Apple\AbstractAppleCalendarService
59 */
60 public static function getAppleCalendarService($c)
61 {
62 return new InfrastructureServices\Apple\StarterAppleCalendarCalendarService($c);
63 }
64
65 /**
66 * @param Container $c
67 *
68 * @return InfrastructureServices\Mailchimp\AbstractMailchimpService
69 */
70 public static function getMailchimpService($c)
71 {
72 return new InfrastructureServices\Mailchimp\StarterMailchimpService($c);
73 }
74
75 /**
76 * @param Container $c
77 *
78 * @return InfrastructureServices\Recaptcha\AbstractRecaptchaService
79 */
80 public static function getRecaptchaService($c)
81 {
82 return new InfrastructureServices\Recaptcha\LiteRecaptchaService(
83 $c->get('domain.settings.service')
84 );
85 }
86
87 /**
88 * @param Container $c
89 *
90 * @return InfrastructureServices\LessonSpace\AbstractLessonSpaceService
91 */
92 public static function getLessonSpaceService($c)
93 {
94 return new InfrastructureServices\LessonSpace\LiteLessonSpaceService(
95 $c,
96 $c->get('domain.settings.service')
97 );
98 }
99
100 /**
101 * @param Container $c
102 *
103 * @return InfrastructureServices\Zoom\AbstractZoomService
104 */
105 public static function getZoomService($c)
106 {
107 return new InfrastructureServices\Zoom\StarterZoomService(
108 $c->get('domain.settings.service')
109 );
110 }
111
112 /**
113 * @param Container $c
114 *
115 * @return DomainServices\Payment\PaymentServiceInterface
116 */
117 public static function getPayPalService($c)
118 {
119 return new InfrastructureServices\Payment\StarterPaymentService(
120 $c->get('domain.settings.service'),
121 new InfrastructureServices\Payment\CurrencyService(
122 $c->get('domain.settings.service')
123 ),
124 $c->get('infrastructure.logger')
125 );
126 }
127
128 /**
129 * @param Container $c
130 *
131 * @return DomainServices\Payment\PaymentServiceInterface
132 */
133 public static function getStripeService($c)
134 {
135 return new InfrastructureServices\Payment\StarterPaymentService(
136 $c->get('domain.settings.service'),
137 new InfrastructureServices\Payment\CurrencyService(
138 $c->get('domain.settings.service')
139 ),
140 $c->get('infrastructure.logger')
141 );
142 }
143
144 /**
145 * @param Container $c
146 *
147 * @return DomainServices\Payment\PaymentServiceInterface
148 */
149 public static function getMollieService($c)
150 {
151 return new InfrastructureServices\Payment\StarterPaymentService(
152 $c->get('domain.settings.service'),
153 new InfrastructureServices\Payment\CurrencyService(
154 $c->get('domain.settings.service')
155 ),
156 $c->get('infrastructure.logger')
157 );
158 }
159
160 /**
161 * @param Container $c
162 *
163 * @return DomainServices\Payment\PaymentServiceInterface
164 */
165 public static function getRazorpayService($c)
166 {
167 return new InfrastructureServices\Payment\StarterPaymentService(
168 $c->get('domain.settings.service'),
169 new InfrastructureServices\Payment\CurrencyService(
170 $c->get('domain.settings.service')
171 ),
172 $c->get('infrastructure.logger')
173 );
174 }
175
176 public static function getBarionService($c)
177 {
178 return new InfrastructureServices\Payment\StarterPaymentService(
179 $c->get('domain.settings.service'),
180 new InfrastructureServices\Payment\CurrencyService(
181 $c->get('domain.settings.service')
182 ),
183 $c->get('infrastructure.logger')
184 );
185 }
186
187 /**
188 * @param $c
189 * @return InfrastructureServices\Authentication\AbstractSocialAuthenticationService
190 */
191 public static function getSocialAuthenticationService($c)
192 {
193 return new InfrastructureServices\Authentication\StarterSocialAuthenticationService($c);
194 }
195
196 /**
197 * @param Container $c
198 *
199 * @return InfrastructureServices\QrCode\AbstractQrCodeInfrastructureService
200 */
201 public static function getQrCodeService($c)
202 {
203 return new InfrastructureServices\QrCode\StarterQrCodeInfrastructureService($c);
204 }
205 }
206