2 Commits

Author SHA1 Message Date
GamerClassN7
98efb779b1 comment 2020-12-17 19:17:05 +01:00
30045b9f65 Merge pull request 'feature/bootstrap' (#2) from feature/bootstrap into remastering
Reviewed-on: #2
2020-12-15 21:22:52 +00:00
3 changed files with 2 additions and 39 deletions

View File

@@ -202,6 +202,7 @@ $partial = new Partial('head');
</form> </form>
</div> </div>
<!--Plugins Settings-->
</div> </div>

View File

@@ -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.
*/
}

View File

@@ -8,18 +8,4 @@ namespace Core\Configuration;
* @author Romano Schoonheim https://github.com/romano1996 * @author Romano Schoonheim https://github.com/romano1996
*/ */
class Configurations 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.
}
}