feature/bootstrap #2
@ -19,7 +19,7 @@ class Application
|
||||
$this->configurations = $configurations;
|
||||
}
|
||||
|
||||
public function run()
|
||||
public function run(): void
|
||||
{
|
||||
//todo: implement run logic.
|
||||
}
|
||||
|
@ -8,47 +8,4 @@ namespace Core\Configuration;
|
||||
* @author Romano Schoonheim https://github.com/romano1996
|
||||
*/
|
||||
class Configurations
|
||||
{
|
||||
private $configurations = [];
|
||||
|
||||
public function __construct(FileSystem $fileSystem)
|
||||
{
|
||||
foreach ($fileSystem->getConfigurationFiles() as $configurationFile) {
|
||||
print_r($configurationFile);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// private const IGNORED_FILES = [
|
||||
// '.',
|
||||
// '..',
|
||||
// 'config.php',
|
||||
// 'config_sample.php'
|
||||
// ];
|
||||
//
|
||||
//
|
||||
// private $configurations = [];
|
||||
//
|
||||
// public function __construct()
|
||||
// {
|
||||
// foreach (scandir(self::CONFIGURATION_DIRECTORY) as $item) {
|
||||
// if (in_array($item, self::IGNORED_FILES)) {
|
||||
// continue;
|
||||
// }
|
||||
//
|
||||
// $filePath = self::CONFIGURATION_DIRECTORY . $item;
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
// die();
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// public function config(string $path): array
|
||||
// {
|
||||
// return $this->configurations;
|
||||
// }
|
||||
}
|
||||
{}
|
||||
|
@ -1,8 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Core\Configuration\Factories;
|
||||
|
||||
class FileFactory
|
||||
{
|
||||
|
||||
}
|
@ -1,33 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Core\Configuration;
|
||||
|
||||
use Core\Configuration\Factories\FileFactory;
|
||||
use Core\Configuration\Objects\File;
|
||||
|
||||
/**
|
||||
* Class FileSystem
|
||||
* @package Core\Configuration
|
||||
* @author Romano Schoonheim https://github.com/romano1996
|
||||
*/
|
||||
class FileSystem
|
||||
{
|
||||
private const CONFIGURATION_DIRECTORY = __DIR__ . '/../../config/';
|
||||
|
||||
private $fileFactory;
|
||||
|
||||
public function __construct(FileFactory $factory)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return File[]
|
||||
*/
|
||||
public function getConfigurationFiles(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
}
|
@ -1,10 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Core\Configuration\Objects;
|
||||
|
||||
class File
|
||||
{
|
||||
protected string $name;
|
||||
|
||||
protected string $mimeType;
|
||||
}
|
Loading…
Reference in New Issue
Block a user