update readme
This commit is contained in:
parent
b12cf019e7
commit
ab3227b75f
88 changed files with 7546 additions and 176 deletions
|
@ -4,6 +4,10 @@ namespace Lubian\NoFramework;
|
|||
|
||||
final class Settings
|
||||
{
|
||||
/**
|
||||
* @param array{driver: string, user: string, password: string, path: string} $connection
|
||||
* @param array{devMode: bool, metadataDirs: string[], cacheDir: string} $doctrine
|
||||
*/
|
||||
public function __construct(
|
||||
public readonly string $environment,
|
||||
public readonly string $dependenciesFile,
|
||||
|
@ -11,6 +15,19 @@ final class Settings
|
|||
public readonly string $templateDir,
|
||||
public readonly string $templateExtension,
|
||||
public readonly string $pagesPath,
|
||||
/**
|
||||
* @var array{driver: string, user: string, password: string, path: string}
|
||||
*/
|
||||
public readonly array $connection,
|
||||
/**
|
||||
* @var array{devMode: bool, metadataDirs: string[], cacheDir: string}
|
||||
*/
|
||||
public readonly array $doctrine,
|
||||
) {
|
||||
}
|
||||
|
||||
public function isDev(): bool
|
||||
{
|
||||
return $this->environment === 'dev';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue