| Current Path : /home/jeromecohp/www/plugins/system/yooessentials/modules/core/src/ |
| Current File : /home/jeromecohp/www/plugins/system/yooessentials/modules/core/src/Config.php |
<?php
/**
* @package Essentials YOOtheme Pro (Freemium) 2.0.19 build 1026.0920
* @author ZOOlanders https://www.zoolanders.com
* @copyright Copyright (C) Joolanders, SL
* @license http://www.gnu.org/licenses/gpl.html GNU/GPL
*/
namespace ZOOlanders\YOOessentials;
use YOOtheme\Event;
use ZOOlanders\YOOessentials\Config\ConfigInterface;
use ZOOlanders\YOOessentials\Config\ConfigRepositoryInterface;
use ZOOlanders\YOOessentials\Config\ConfigStorage;
class Config extends ConfigStorage implements ConfigInterface
{
/** @var ConfigRepositoryInterface */
private $repository;
public function __construct(ConfigRepositoryInterface $repository)
{
$this->repository = $repository;
$this->repository->load($this);
$values = Event::emit('yooessentials.config.load|filter', $this->values);
if (is_array($values)) {
$this->values = $values;
}
}
}