File "Frontend.php"
Full Path: /home/shadsolw/public_html/wp-content/plugins/extendify/app/Agent/Frontend.php
File size: 672 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
/**
* Frontend.
*/
namespace Extendify\Agent;
defined('ABSPATH') || die('No direct access.');
/**
* This class handles frontend concerns for the Agent.
*/
class Frontend
{
public function __construct()
{
$this->loadIntegrations();
}
/**
* Load the integration classes
*
* @return void
*/
protected function loadIntegrations()
{
foreach (glob(__DIR__ . '/Integrations/*.php') as $file) {
$class = 'Extendify\\Agent\\Integrations\\' . basename($file, '.php');
if (!class_exists($class)) {
continue;
}
new $class();
}
}
}