17 lines
317 B
PHP
17 lines
317 B
PHP
<?php
|
|
|
|
// TODO: ...
|
|
class Config
|
|
{
|
|
public array $config;
|
|
|
|
public function __construct(string $path)
|
|
{
|
|
if (!file_exists($path)) {
|
|
echo("Could not find $path");
|
|
throw new Exception("Could not find $path");
|
|
|
|
}
|
|
$this->config = require $path;
|
|
}
|
|
} |