no-framework-tutorial/app/config/settings.php

24 lines
653 B
PHP
Raw Normal View History

2022-03-31 06:34:30 +00:00
<?php declare(strict_types=1);
use Lubian\NoFramework\Settings;
return new Settings(
2022-04-04 22:02:52 +00:00
environment: 'prod',
2022-03-31 06:34:30 +00:00
dependenciesFile: __DIR__ . '/dependencies.php',
middlewaresFile: __DIR__ . '/middlewares.php',
templateDir: __DIR__ . '/../templates',
templateExtension: '.html',
2022-04-04 22:02:52 +00:00
pagesPath: __DIR__ . '/../data/pages/',
connection: [
'driver' => 'pdo_sqlite',
'user' => '',
'password' => '',
'path' => __DIR__ . '/../data/db.sqlite',
],
doctrine: [
'devMode' => true,
'metadataDirs' => [__DIR__ . '/../src/Model/'],
'cacheDir' => __DIR__ . '/../data/cache/',
],
2022-03-31 06:34:30 +00:00
);