JFIF $ d d 7 * Z qn )ZP 0 !1 A "#a$2Qr D8 a Ri [f \m I ykI w0 c u F c Rı?lO7 к _f˓ [C $殷WF< _W ԣ s Kc ëI zyQy /_LK ℂ ;C",p F A : /] =H ~ , l s / 9 ć: [=/#f ; ) x { ٛE Q )~ = 𘙲r*2~ a _V = ' ku m F D } KYYC )( { * g& f `툪 r y ` = ^ c J. I ]( * `wq 1dđ #̩ ͑ 0 ; H ] u 搂 @:~ ו K L N s h } O I R* 8 :2 ! lD JV o ( 3 = M ( z Ȱ+i *N A r6K n S l ) ! J J Ӂ* % ݉?|D } d5: eP0 R; {$X' x F @ .ÊB {,WJ uQ ɲRI ;9 Q E琯 6 2fT .DU J ;*c P A\IL Nj! J ۱+ O\ ͔ ] ޒ S J ȧ c%A N ol ՎprU L Zԛe r E2= X D Xg VQeӓ k y P7 U* o m Q I s ,K `) 6\G3t?pgjr m ۛجw luGt f h 9uyP 0D;Uڽ"OXl i f $ ) &|ML 0 Z rm1 [ H XP l P R0 'G=i 2N +0 e 2 ]] 9 VT P O 7 h(F * 癈 ' = Q VZD F,d ߬ ~ T X G[ `le 69C R(!S2! P < 0 x < !1AQ "Raq 02Br #S CTb ? Ζ "]mH5WR 7 k.ۛ ! } Q~ + yԏ z |@ T20 S~ K e k *zF f^2X *( @ 8 r ? C I uI|֓>^Ex LgNU Y+{.R Ѫ τV YT D I 6 2 '8Y2 7'\T P.6 d &˦ @V q i |8 -O Ε ] ʔ U= T L 8= ;6c | !qfF3 a ů& ~$ l} 'NW U s$U k^S V : U#6w + +s &r+n ڐ { @ 29gL u " T Ù M=6 (^ "7 r}=6Yݾ lC u hquymp Ǧ G jhs ǜNl ɻ} o 7 #S6 a w 4 ! OS r D 5 7 % | ?x> L | / nD 6?/8 w # [ ) L 7 +6〼T A T g ! %5 Mm Z /c -{1_Je "| ^$ 'O & ޱմ < H vNqϡQ$ < 6 &Nݛ ֨tǻN (9 n ru~'όN sMG& ,uH Kw *Ī 5@ u6 BԒ i YN * f 0 _ GhKW u lT <nj- 0{ M L~ | /a v\ E = ?1 \ɟuq Ђ Y O a K ޡP q $ H8o Q˼EV ~ k 0 h' L Pp M -M" m^ !6l nմ 쮝C U T . ! :vMǨb h ډ Vc r @~p # !1QAa q ? AL0L x LU 4 d ; x " 16ad0 7.\ߋ 0 = P l v/ " c A Ay A|2pO8"d MV #1] = \ " ˡ ] k v I9 d ۓ & q ) ǐq E ꞅ v "P )q X &Q З non]я u ג./ ; gZ$ M QР 2M ]h ni 0 P $ێ 3CɏGjώy : m c # S_ l@ '_ \m|C 2`K _ 1 cIvGc $? PCQ S+D ? K aײ k Fr b 8 ύ NEدg ĝ U 3 6 #Ik+ v { v i ( ވ ? a e) X xy/*@Q Ǽ Ծ ) $ IWO l c G; !i k{ gOŀ L ('x T rb $ w) R $ & N1E td U3Uȉ1p M"N* (DNy d96.(jQ) X 5 c QɎMy W ? Q *!R > 6=7)Xj 5`J ] e 8%t ! + ' ! 1Q 5 !1 AQaq ё #2 "0BRb ? G t^ ## .l lQ T $ v , ,m 㵜5u bV =sY+ @d { N ! dn O < .- B; _w J t 6;Q Jd. Q c%p{ 1 ,sND dF H I0 Гo X ш e黅X ۢ F :)[ F G X ƹ / w _c MeD ,ʡc c . W D tA $ j@ : ) - #u c1< @ۗ9F ) KJ- hpP] _ x [ q B lb p ʖ w q " LFGd ƶ * s +ډ_Zc " ? % t[I P 6 J ]# =ɺ V v v CGs Gh1 > )6 |e y ? L ӣ m,4 G W Ui ` ] uJVo VDG< SB 6ϏQ @ TiU l y O U 0 kfV ~ ~}S Z @ *WU Ui ## ; s /[ = ! 7}" W N ] ' (L ! ~ y5 g9T̅J kbM' +s :S +B) v @ M j e C f j E 0 Y\Qn z G 1 д~ W o{T 9?` Rm yhsy3 !HAD ] m c1 ~ 2 L S u7x T ;j$ `} 4-> L# vzŏ I L S ֭ T { r jGK C ; b pU= - ` Bs K. S F w4 M q] Z dH S 0 ) tLg
<?php
/**
* Assembling application services:
* Instantiating application services and injecting the Infrastructure layer implementations
*/
use AmeliaBooking\Application\Commands\Stripe\CompleteStripePaymentIntentCommandHandler;
use AmeliaBooking\Application\Services\Bookable\AbstractPackageApplicationService;
use AmeliaBooking\Application\Services\Bookable\BookableApplicationService;
use AmeliaBooking\Application\Services\Booking\AppointmentApplicationService;
use AmeliaBooking\Application\Services\Booking\BookingApplicationService;
use AmeliaBooking\Application\Services\Booking\EventApplicationService;
use AmeliaBooking\Application\Services\Calendar\CalendarProviderService;
use AmeliaBooking\Application\Services\Cache\CacheApplicationService;
use AmeliaBooking\Application\Services\Entity\EntityApplicationService;
use AmeliaBooking\Application\Services\Gallery\GalleryApplicationService;
use AmeliaBooking\Application\Services\Payment\PaymentApplicationService;
use AmeliaBooking\Application\Services\Reservation\ReservationService;
use AmeliaBooking\Application\Services\TimeSlot\TimeSlotService;
use AmeliaBooking\Application\Services\WaitingList\WaitingListService;
use AmeliaBooking\Application\Services\User\CustomerApplicationService;
use AmeliaBooking\Application\Services\User\ProviderApplicationService;
use AmeliaBooking\Application\Services\User\UserApplicationService;
use AmeliaBooking\Domain\Entity\Booking\Reservation;
use AmeliaBooking\Infrastructure\Common\Container;
defined('ABSPATH') or die('No script kiddies please!');
/**
* Entities service
*
* @param Container $c
*
* @return EntityApplicationService
*/
$entries['application.entity.service'] = function ($c) {
return new AmeliaBooking\Application\Services\Entity\EntityApplicationService($c);
};
/**
* Customer service
*
* @param Container $c
*
* @return UserApplicationService
*/
$entries['application.user.service'] = function ($c) {
return new AmeliaBooking\Application\Services\User\UserApplicationService($c);
};
/**
* API User Application service
*
* @param $c
*
* @return AmeliaBooking\Application\Services\User\UserApplicationService
*/
$entries['application.api.user.service'] = function ($c) {
return AmeliaBooking\Infrastructure\Licence\ApplicationService::getApiService(
$c
);
};
/**
* Provider service
*
* @param Container $c
*
* @return ProviderApplicationService
*/
$entries['application.user.provider.service'] = function ($c) {
return new AmeliaBooking\Application\Services\User\ProviderApplicationService($c);
};
/**
* Customer service
*
* @param Container $c
*
* @return CustomerApplicationService
*/
$entries['application.user.customer.service'] = function ($c) {
return new AmeliaBooking\Application\Services\User\CustomerApplicationService($c);
};
/**
* Current Location Service
*
* @return AmeliaBooking\Application\Services\Location\AbstractCurrentLocation
*/
$entries['application.currentLocation.service'] = function () {
return AmeliaBooking\Infrastructure\Licence\ApplicationService::getCurrentLocationService();
};
/**
* Deposit Service
*
* @param Container $c
*
* @return AmeliaBooking\Application\Services\Deposit\AbstractDepositApplicationService
*/
$entries['application.deposit.service'] = function ($c) {
return AmeliaBooking\Infrastructure\Licence\ApplicationService::getDepositService($c);
};
/**
* Extra Service
*
* @param Container $c
*
* @return AmeliaBooking\Application\Services\Extra\AbstractExtraApplicationService
*/
$entries['application.extra.service'] = function ($c) {
return AmeliaBooking\Infrastructure\Licence\ApplicationService::getExtraService($c);
};
/**
* Appointment service
*
* @param Container $c
*
* @return AppointmentApplicationService
*/
$entries['application.booking.appointment.service'] = function ($c) {
return new AmeliaBooking\Application\Services\Booking\AppointmentApplicationService($c);
};
/**
* Event service
*
* @param Container $c
*
* @return EventApplicationService
*/
$entries['application.booking.event.service'] = function ($c) {
return new AmeliaBooking\Application\Services\Booking\EventApplicationService($c);
};
/**
* Reservation service
*
* @param Container $c
*
* @return ReservationService
*/
$entries['application.reservation.service'] = function ($c) {
return new AmeliaBooking\Application\Services\Reservation\ReservationService($c);
};
/**
* Reservation
*
* @param bool $validate
*
* @return Reservation
*/
$entries['application.reservation'] = function () {
return new AmeliaBooking\Domain\Entity\Booking\Reservation();
};
/**
* Appointment Reservation service
*
* @param Container $c
*
* @return AmeliaBooking\Application\Services\Reservation\AppointmentReservationService
*/
$entries['application.reservation.appointment.service'] = function ($c) {
return new AmeliaBooking\Application\Services\Reservation\AppointmentReservationService($c);
};
/**
* Package Reservation service
*
* @param Container $c
*
* @return AmeliaBooking\Application\Services\Reservation\PackageReservationService
*/
$entries['application.reservation.package.service'] = function ($c) {
return new AmeliaBooking\Application\Services\Reservation\PackageReservationService($c);
};
/**
* Event Reservation service
*
* @param Container $c
*
* @return AmeliaBooking\Application\Services\Reservation\EventReservationService
*/
$entries['application.reservation.event.service'] = function ($c) {
return new AmeliaBooking\Application\Services\Reservation\EventReservationService($c);
};
/**
* Booking service
*
* @param Container $c
*
* @return BookingApplicationService
*/
$entries['application.booking.booking.service'] = function ($c) {
return new AmeliaBooking\Application\Services\Booking\BookingApplicationService($c);
};
/**
* Bookable service
*
* @param Container $c
*
* @return BookableApplicationService
*/
$entries['application.bookable.service'] = function ($c) {
return new AmeliaBooking\Application\Services\Bookable\BookableApplicationService($c);
};
/**
* Bookable package
*
* @param Container $c
*
* @return AbstractPackageApplicationService
*/
$entries['application.bookable.package'] = function ($c) {
return AmeliaBooking\Infrastructure\Licence\ApplicationService::getPackageService($c);
};
/**
* Resource service
*
* @param Container $c
*
* @return AmeliaBooking\Application\Services\Resource\AbstractResourceApplicationService
*/
$entries['application.resource.service'] = function ($c) {
return AmeliaBooking\Infrastructure\Licence\ApplicationService::getResourceService($c);
};
/**
* Gallery service
*
* @param Container $c
*
* @return GalleryApplicationService
*/
$entries['application.gallery.service'] = function ($c) {
return new AmeliaBooking\Application\Services\Gallery\GalleryApplicationService($c);
};
/**
* Calendar service
*
* @param Container $c
*
* @return TimeSlotService
*/
$entries['application.timeSlot.service'] = function ($c) {
return new AmeliaBooking\Application\Services\TimeSlot\TimeSlotService($c);
};
/**
* Calendar provider service
*
* @param Container $c
*
* @return CalendarProviderService
*/
$entries['application.calendar.provider.service'] = function ($c) {
return new AmeliaBooking\Application\Services\Calendar\CalendarProviderService($c);
};
/**
* Calendar service
*
* @param Container $c
*
* @return WaitingListService
*/
$entries['application.waitingList.service'] = function ($c) {
return new AmeliaBooking\Application\Services\WaitingList\WaitingListService($c);
};
/**
* Cache service
*
* @param Container $c
*
* @return CacheApplicationService
*/
$entries['application.cache.service'] = function ($c) {
return new AmeliaBooking\Application\Services\Cache\CacheApplicationService($c);
};
/**
* Tax service
*
* @param Container $c
*
* @return AmeliaBooking\Application\Services\Tax\AbstractTaxApplicationService
*/
$entries['application.tax.service'] = function ($c) {
return AmeliaBooking\Infrastructure\Licence\ApplicationService::getTaxService($c);
};
/**
* Coupon service
*
* @param Container $c
*
* @return AmeliaBooking\Application\Services\Coupon\AbstractCouponApplicationService
*/
$entries['application.coupon.service'] = function ($c) {
return AmeliaBooking\Infrastructure\Licence\ApplicationService::getCouponService($c);
};
/**
* Location Service
*
* @param Container $c
*
* @return AmeliaBooking\Application\Services\Location\AbstractLocationApplicationService
*/
$entries['application.location.service'] = function ($c) {
return AmeliaBooking\Infrastructure\Licence\ApplicationService::getLocationService($c);
};
/**
* Notification Service
*
* @param Container $c
*
* @return AmeliaBooking\Application\Services\Notification\ApplicationNotificationService
*/
$entries['application.notification.service'] = function ($c) {
return new AmeliaBooking\Application\Services\Notification\ApplicationNotificationService($c);
};
/**
* Appointment Notification Service
*
* @param Container $c
*
* @return AmeliaBooking\Application\Services\Notification\AppointmentNotificationService
*/
$entries['application.notification.appointment.service'] = function ($c) {
return new AmeliaBooking\Application\Services\Notification\AppointmentNotificationService($c);
};
/**
* Email Notification Service
*
* @param Container $c
*
* @return \AmeliaBooking\Application\Services\Notification\EmailNotificationService
*/
$entries['application.emailNotification.service'] = function ($c) {
return new AmeliaBooking\Application\Services\Notification\EmailNotificationService($c, 'email');
};
/**
* Notification Helper Service
*
* @param Container $c
*
* @return \AmeliaBooking\Application\Services\Notification\NotificationHelperService
*/
$entries['application.notificationHelper.service'] = function ($c) {
return new AmeliaBooking\Application\Services\Notification\NotificationHelperService($c);
};
/**
* Expo Push Notification Service
*
* @param Container $c
*
* @return AmeliaBooking\Application\Services\Mobile\ExpoPushNotificationService
*/
$entries['application.mobile.expoPushNotification.service'] = function ($c) {
return new AmeliaBooking\Application\Services\Mobile\ExpoPushNotificationService($c);
};
/**
* Push Notification Service
*
* @param Container $c
*
* @return AmeliaBooking\Application\Services\Mobile\PushNotificationService
*/
$entries['application.mobile.pushNotification.service'] = function ($c) {
return new AmeliaBooking\Application\Services\Mobile\PushNotificationService($c);
};
/**
* SMS Notification Service
*
* @param Container $c
*
* @return \AmeliaBooking\Application\Services\Notification\SMSNotificationService
*/
$entries['application.smsNotification.service'] = function ($c) {
return new AmeliaBooking\Application\Services\Notification\SMSNotificationService($c, 'sms');
};
/**
* WhatsApp Notification Service
*
* @param Container $c
*
* @return AmeliaBooking\Application\Services\Notification\AbstractWhatsAppNotificationService
*/
$entries['application.whatsAppNotification.service'] = function ($c) {
return AmeliaBooking\Infrastructure\Licence\ApplicationService::getWhatsAppNotificationService($c);
};
/**
* Appointment Notification Service
*
* @param Container $c
*
* @return \AmeliaBooking\Application\Services\Placeholder\AppointmentPlaceholderService
*/
$entries['application.placeholder.appointment.service'] = function ($c) {
return new AmeliaBooking\Application\Services\Placeholder\AppointmentPlaceholderService($c);
};
/**
* Appointments Notification Service
*
* @param Container $c
*
* @return \AmeliaBooking\Application\Services\Placeholder\AppointmentsPlaceholderService
*/
$entries['application.placeholder.appointments.service'] = function ($c) {
return new AmeliaBooking\Application\Services\Placeholder\AppointmentsPlaceholderService($c);
};
/**
* Package Notification Service
*
* @param Container $c
*
* @return \AmeliaBooking\Application\Services\Placeholder\PackagePlaceholderService
*/
$entries['application.placeholder.package.service'] = function ($c) {
return new AmeliaBooking\Application\Services\Placeholder\PackagePlaceholderService($c);
};
/**
* Event Notification Service
*
* @param Container $c
*
* @return \AmeliaBooking\Application\Services\Placeholder\EventPlaceholderService
*/
$entries['application.placeholder.event.service'] = function ($c) {
return new AmeliaBooking\Application\Services\Placeholder\EventPlaceholderService($c);
};
/**
* Stats Service
*
* @param Container $c
*
* @return \AmeliaBooking\Application\Services\Stats\StatsService
*/
$entries['application.stats.service'] = function ($c) {
return new AmeliaBooking\Application\Services\Stats\StatsService($c);
};
/**
* Helper Service
*
* @param Container $c
*
* @return \AmeliaBooking\Application\Services\Helper\HelperService
*/
$entries['application.helper.service'] = function ($c) {
return new AmeliaBooking\Application\Services\Helper\HelperService($c);
};
/**
* Settings Service
*
* @param Container $c
*
* @return \AmeliaBooking\Application\Services\Settings\SettingsService
*/
$entries['application.settings.service'] = function ($c) {
return new AmeliaBooking\Application\Services\Settings\SettingsService($c);
};
/**
* SMS API Service
*
* @param Container $c
*
* @return \AmeliaBooking\Application\Services\Notification\SMSAPIService
*/
$entries['application.smsApi.service'] = function ($c) {
return new AmeliaBooking\Application\Services\Notification\SMSAPIService($c);
};
/**
* WhatsApp Service
*
* @param Container $c
*
* @return \AmeliaBooking\Application\Services\Notification\WhatsAppService
*/
$entries['application.whatsApp.service'] = function ($c) {
return new AmeliaBooking\Application\Services\Notification\WhatsAppService($c);
};
/**
* Payment service
*
* @param Container $c
*
* @return PaymentApplicationService
*/
$entries['application.payment.service'] = function ($c) {
return new AmeliaBooking\Application\Services\Payment\PaymentApplicationService($c);
};
/**
* Stripe service
*
* @param Container $c
*
* @return AmeliaBooking\Application\Services\Stripe\AbstractStripeApplicationService
*/
$entries['application.stripe.service'] = function ($c) {
return AmeliaBooking\Infrastructure\Licence\ApplicationService::getStripeService($c);
};
/**
* Stripe webhook registration service
*
* @param Container $c
*
* @return AmeliaBooking\Application\Services\Payment\StripeWebhookRegistrationService
*/
$entries['application.stripe.webhook.registration.service'] = function ($c) {
return new AmeliaBooking\Application\Services\Payment\StripeWebhookRegistrationService($c);
};
/**
* Invoice service
*
* @param Container $c
*
* @return AmeliaBooking\Application\Services\Invoice\AbstractInvoiceApplicationService
*/
$entries['application.invoice.service'] = function ($c) {
return AmeliaBooking\Infrastructure\Licence\ApplicationService::getInvoiceService($c);
};
/**
* Custom Field Service
*
* @param Container $c
*
* @return AmeliaBooking\Application\Services\CustomField\AbstractCustomFieldApplicationService
*/
$entries['application.customField.service'] = function ($c) {
return AmeliaBooking\Infrastructure\Licence\ApplicationService::getCustomFieldService($c);
};
/**
* Web Hook Service
*
* @param Container $c
*
* @return AmeliaBooking\Application\Services\WebHook\AbstractWebHookApplicationService
*/
$entries['application.webHook.service'] = function ($c) {
return AmeliaBooking\Infrastructure\Licence\ApplicationService::getWebHookService($c);
};
/**
* Integration Service
*
* @param Container $c
*
* @return AmeliaBooking\Application\Services\Integration\ApplicationIntegrationService
*/
$entries['application.integration.service'] = function ($c) {
return new AmeliaBooking\Application\Services\Integration\ApplicationIntegrationService($c);
};
/**
* Zoom Service
*
* @param Container $c
*
* @return AmeliaBooking\Application\Services\Zoom\AbstractZoomApplicationService
*/
$entries['application.zoom.service'] = function ($c) {
return AmeliaBooking\Infrastructure\Licence\ApplicationService::getZoomService($c);
};
/**
* ICS File Service
*
* @param Container $c
*
* @return \AmeliaBooking\Application\Services\Booking\IcsApplicationService
*/
$entries['application.ics.service'] = function ($c) {
return new AmeliaBooking\Application\Services\Booking\IcsApplicationService($c);
};
/**
* Stash Service
*
* @param Container $c
*
* @return AmeliaBooking\Application\Services\Stash\StashApplicationService
*/
$entries['application.stash.service'] = function ($c) {
return new AmeliaBooking\Application\Services\Stash\StashApplicationService($c);
};
/**
* Calendar Service
*
* @param Container $c
*
* @return AmeliaBooking\Application\Services\Calendar\AbstractCalendarApplicationService
*/
$entries['application.calendar.service'] = function ($c) {
return AmeliaBooking\Infrastructure\Licence\ApplicationService::getCalendarService($c);
};
/**
* QR Code service
*
* @param Container $c
*
* @return AmeliaBooking\Application\Services\QrCode\AbstractQrCodeApplicationService
*/
$entries['application.qrcode.service'] = function ($c) {
return AmeliaBooking\Infrastructure\Licence\ApplicationService::getQrCodeService($c);
};
/**
* Stripe PaymentIntent completion handler
*
* @param Container $c
*
* @return CompleteStripePaymentIntentCommandHandler
*/
$entries[CompleteStripePaymentIntentCommandHandler::class] = function ($c) {
return new CompleteStripePaymentIntentCommandHandler($c);
};