Compare commits
2 Commits
feature/co
...
98efb779b1
Author | SHA1 | Date | |
---|---|---|---|
|
98efb779b1 | ||
30045b9f65 |
@@ -202,6 +202,7 @@ $partial = new Partial('head');
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<!--Plugins Settings-->
|
||||
|
||||
</div>
|
||||
|
||||
|
@@ -1,24 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Core\Configuration;
|
||||
|
||||
class ConfigurationLoader
|
||||
{
|
||||
private const CONFIGURATIONS_DIRECTORY = __DIR__ . DIRECTORY_SEPARATOR
|
||||
. '..' . DIRECTORY_SEPARATOR
|
||||
. '..' . DIRECTORY_SEPARATOR . 'config'
|
||||
. DIRECTORY_SEPARATOR;
|
||||
|
||||
public function load(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Concerns
|
||||
* -> Loading configuration files
|
||||
* - Scan directory for files.
|
||||
* - Filtering none config / php files.
|
||||
* - Creating assoc array.
|
||||
*/
|
||||
}
|
@@ -8,18 +8,4 @@ namespace Core\Configuration;
|
||||
* @author Romano Schoonheim https://github.com/romano1996
|
||||
*/
|
||||
class Configurations
|
||||
{
|
||||
/** @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.
|
||||
}
|
||||
}
|
||||
{}
|
||||
|
Reference in New Issue
Block a user