add chapter about data repositories, and start work on perfomance chapter
This commit is contained in:
parent
eb20213b94
commit
9a1f78947b
165 changed files with 14028 additions and 2028 deletions
23
implementation/15-adding-content/config/settings.php
Normal file
23
implementation/15-adding-content/config/settings.php
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?php declare(strict_types=1);
|
||||
|
||||
use Lubian\NoFramework\Settings;
|
||||
|
||||
return new Settings(
|
||||
environment: 'prod',
|
||||
dependenciesFile: __DIR__ . '/dependencies.php',
|
||||
middlewaresFile: __DIR__ . '/middlewares.php',
|
||||
templateDir: __DIR__ . '/../templates',
|
||||
templateExtension: '.html',
|
||||
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/',
|
||||
],
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue