PluginProbe
Yatra – Travel Booking & Tour Operator Software / 2.2.10
Yatra – Travel Booking & Tour Operator Software v2.2.10
3.0.14 3.0.14.1 3.0.14.2 3.0.12 3.0.13 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.5.1 3.0.4 3.0.3 3.0.2.9 3.0.2.7 3.0.2.8 3.0.2.6 trunk 1.0.0 2.0.0 2.0.1 2.0.10 2.0.11 All 82 releases
yatra / core / Initialize.php

Initialize.php in Yatra – Travel Booking & Tour Operator Software 2.2.10, at core/Initialize.php

55 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Yatra\Core;
4
5 use Yatra\Core\API\TrackerAPI;
6 use Yatra\Core\Compatibility\Astra;
7 use Yatra\Core\Hooks\BookingHooks;
8 use Yatra\Core\Hooks\EmailHooks;
9 use Yatra\Core\Hooks\EnquiryHooks;
10 use Yatra\Core\Hooks\NoticeHooks;
11 use Yatra\Core\Hooks\ReCaptchaHooks;
12 use Yatra\Core\Hooks\TourHooks;
13
14 class Initialize
15 {
16 public static function run()
17 {
18 require_once YATRA_ABSPATH . 'core/globals.php';
19 require_once YATRA_ABSPATH . 'core/functions/pages.php';
20 require_once YATRA_ABSPATH . 'core/functions/tour.php';
21
22 $self = new self;
23
24 $self->api_init();
25 $self->cron_init();
26 $self->hooks_init();
27 $self->compatibility_init();
28 }
29
30 public function api_init()
31 {
32 TrackerAPI::init();
33 }
34
35 public function cron_init()
36 {
37 Cron::init();
38 }
39
40 public function hooks_init()
41 {
42 TourHooks::init();
43 NoticeHooks::init();
44 EmailHooks::init();
45 BookingHooks::init();
46 ReCaptchaHooks::init();
47 }
48
49 public function compatibility_init()
50 {
51 Astra::init();
52 }
53 }
54
55