2020-12-15 20:46:46 +00:00
|
|
|
<?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
|
|
|
}
|