16 lines
304 B
PHP
16 lines
304 B
PHP
<?php
|
|
|
|
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;
|
|
}
|
|
} |