PluginProbe
Extendify / 3.1.5
Extendify v3.1.5
3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 0.7.0 All 126 releases
extendify / app / Agent / Frontend.php

Frontend.php in Extendify 3.1.5, at app/Agent/Frontend.php

39 lines 672 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Frontend.
5 */
6
7 namespace Extendify\Agent;
8
9 defined('ABSPATH') || die('No direct access.');
10
11 /**
12 * This class handles frontend concerns for the Agent.
13 */
14 class Frontend
15 {
16 public function __construct()
17 {
18 $this->loadIntegrations();
19 }
20
21 /**
22 * Load the integration classes
23 *
24 * @return void
25 */
26 protected function loadIntegrations()
27 {
28 foreach (glob(__DIR__ . '/Integrations/*.php') as $file) {
29 $class = 'Extendify\\Agent\\Integrations\\' . basename($file, '.php');
30
31 if (!class_exists($class)) {
32 continue;
33 }
34
35 new $class();
36 }
37 }
38 }
39