PHP_SMART_HOME_V3/core/Configuration/Configurations.php

26 lines
547 B
PHP
Raw Normal View History

<?php
namespace Core\Configuration;
/**
* Class Configurations
* @package Core\Configuration
* @author Romano Schoonheim https://github.com/romano1996
*/
class Configurations
2020-12-15 20:55:39 +00:00
{
2020-12-15 21:02:02 +00:00
/** @var array */
private $configurations;
public function __construct(ConfigurationLoader $configurationLoader)
{
// Concern: Storing assoc array to this object.
$this->configurations = $configurationLoader->load();
}
public function get(string $path)
{
// Concern: Accessing configurations based on "paths" application.something For example.
}
2020-12-15 20:55:39 +00:00
}