asdf
This commit is contained in:
parent
7052803761
commit
bb13950966
107 changed files with 8372 additions and 186 deletions
22
app/src/Factory/FileSystemSettingsProvider.php
Normal file
22
app/src/Factory/FileSystemSettingsProvider.php
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?php declare(strict_types=1);
|
||||
|
||||
namespace Lubian\NoFramework\Factory;
|
||||
|
||||
use Lubian\NoFramework\Settings;
|
||||
|
||||
use function assert;
|
||||
|
||||
final class FileSystemSettingsProvider implements SettingsProvider
|
||||
{
|
||||
public function __construct(
|
||||
private string $filePath
|
||||
) {
|
||||
}
|
||||
|
||||
public function getSettings(): Settings
|
||||
{
|
||||
$settings = require $this->filePath;
|
||||
assert($settings instanceof Settings);
|
||||
return $settings;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue