TemplateImportInit.php
40 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Initialize template importer |
| 4 | * |
| 5 | * @package Tutor\TemplateImporter |
| 6 | * @author Themeum <support@themeum.com> |
| 7 | * @link https://themeum.com |
| 8 | * @since 3.9.2 |
| 9 | */ |
| 10 | |
| 11 | namespace Tutor\TemplateImport; |
| 12 | |
| 13 | use TUTOR\Container; |
| 14 | |
| 15 | /** |
| 16 | * Class TemplateImportInit |
| 17 | */ |
| 18 | final class TemplateImportInit { |
| 19 | |
| 20 | /** |
| 21 | * Register hooks |
| 22 | * |
| 23 | * @since 3.9.2 |
| 24 | */ |
| 25 | public function __construct() { |
| 26 | add_action( 'plugins_loaded', array( $this, 'init' ) ); |
| 27 | } |
| 28 | |
| 29 | /** |
| 30 | * Init packages |
| 31 | * |
| 32 | * @since 3.9.2 |
| 33 | * |
| 34 | * @return void |
| 35 | */ |
| 36 | public function init() { |
| 37 | Container::make( TemplateImporter::class ); |
| 38 | } |
| 39 | } |
| 40 |