Diff: STRATO-apps/wordpress_03/app/wp-content/plugins/tutor-pro/tools/Tools.php

Keine Baseline-Datei – Diff nur gegen leer.
Zur Liste
1 -
1 + <?php
2 + /**
3 + * Main tool class
4 + *
5 + * @package Tutor\Tools
6 + * @author Themeum <support@themeum.com>
7 + * @link https://themeum.com
8 + * @since 3.6.0
9 + */
10 +
11 + namespace TutorPro\Tools;
12 +
13 + use TUTOR\Container;
14 + use TUTOR\Singleton;
15 + use AllowDynamicProperties;
16 +
17 +
18 + if ( ! defined( 'ABSPATH' ) ) {
19 + exit;
20 + }
21 +
22 + /**
23 + * Class Tools
24 + *
25 + * @since 3.6.0
26 + */
27 + #[AllowDynamicProperties]
28 + class Tools extends Singleton {
29 +
30 + /**
31 + * Set tools property
32 + *
33 + * @since 3.6.0
34 + */
35 + public function __construct() {
36 + $this->exporter = Container::make( Exporter::class );
37 + $this->importer = Container::make( Importer::class );
38 + $this->course_exporter = Container::make( CourseExporter::class );
39 + $this->helper = Container::make( Helper::class );
40 + $this->error_handler = Container::make( ErrorHandler::class );
41 + $this->bundle_exporter = Container::make( BundleExporter::class );
42 + $this->subscription_exporter = Container::make( SubscriptionExporter::class );
43 + }
44 + }
45 +