PluginProbe
Genesis Blocks / trunk
Genesis Blocks vtrunk
3.1.11 trunk 1.0.0 1.1.0 1.1.1 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.3.0 1.4.0 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 2.0.0 3.0.0 3.0.1 3.1.0 3.1.1 3.1.10 All 32 releases
genesis-blocks / lib / PluginLoader.php

PluginLoader.php in Genesis Blocks trunk, at lib/PluginLoader.php

47 lines 755 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Genesis Blocks
4 * Main init class for the Genesis Blocks plugin.
5 *
6 * @since 1.0.0
7 * @package Genesis\Blocks
8 */
9
10 declare(strict_types=1);
11 namespace Genesis\Blocks;
12
13 /**
14 * Genesis Blocks PluginLoader class
15 *
16 * @since 1.0.0
17 */
18 final class PluginLoader {
19 /**
20 * Environment Information
21 *
22 * @var array
23 */
24 public $context;
25
26 /**
27 * Class Constructor
28 *
29 * @since 0.1.0
30 * @param array $context Data such as 'path', 'url' and 'version'.
31 */
32 public function __construct( array $context ) {
33 $this->context = $context;
34 }
35
36 /**
37 * Initialization
38 * Initialize class.
39 *
40 * @since 0.1.0
41 * @uses \Genesis\Blocks\ModuleLoader::init
42 */
43 public function init(): void {
44 ( new ModuleLoader( $this->context ) )->init();
45 }
46 }
47