Skip to content

Commit e349cfc

Browse files
authored
Merge pull request #2 from Howriq/chapter-1
Updates chapter-1
2 parents f3f2457 + 683df75 commit e349cfc

File tree

5 files changed

+46
-323
lines changed

5 files changed

+46
-323
lines changed
File renamed without changes.

config/autoload/local.php

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?php
2+
3+
/**
4+
* Local configuration.
5+
*
6+
* Duplicate this file as `local.php` and change its settings as required.
7+
* `local.php` is ignored by git and safe to use for local and sensitive data like usernames and passwords.
8+
*/
9+
10+
declare(strict_types=1);
11+
12+
$baseUrl = 'http://light.dotkernel.localhost';
13+
14+
$databases = [
15+
'default' => [
16+
'host' => 'localhost',
17+
'dbname' => 'light',
18+
'user' => 'root',
19+
'password' => '123',
20+
'port' => 3306,
21+
'driver' => 'pdo_mysql',
22+
'charset' => 'utf8mb4',
23+
'collate' => 'utf8mb4_general_ci',
24+
],
25+
// you can add more database connections into this array
26+
];
27+
28+
return [
29+
'databases' => $databases,
30+
'doctrine' => [
31+
'connection' => [
32+
'orm_default' => [
33+
'params' => $databases['default'],
34+
],
35+
],
36+
],
37+
'application' => [
38+
'url' => $baseUrl,
39+
],
40+
'routes' => [
41+
'page' => [
42+
'about' => 'about',
43+
'who-we-are' => 'who-we-are',
44+
],
45+
],
46+
];

docs/book/chapter-1.md

Lines changed: 0 additions & 312 deletions
This file was deleted.

docs/index.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/App/src/ConfigProvider.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,6 @@ private function getDoctrineConfig(): array
112112
],
113113
],
114114
],
115-
'connection' => [
116-
'orm_default' => [
117-
'doctrine_mapping_types' => [
118-
UuidBinaryType::NAME => 'binary',
119-
UuidBinaryOrderedTimeType::NAME => 'binary',
120-
],
121-
],
122-
],
123115
'driver' => [
124116
// The default metadata driver aggregates all other drivers into a single one.
125117
// Override `orm_default` only if you know what you're doing.
@@ -137,8 +129,6 @@ private function getDoctrineConfig(): array
137129
],
138130
'types' => [
139131
UuidType::NAME => UuidType::class,
140-
UuidBinaryType::NAME => UuidBinaryType::class,
141-
UuidBinaryOrderedTimeType::NAME => UuidBinaryOrderedTimeType::class,
142132
],
143133
];
144134
}

0 commit comments

Comments
 (0)