Skip to content

Commit 1eac5cf

Browse files
committed
Issue #368: Switch from UUID4 to UUID7
Signed-off-by: alexmerlin <[email protected]>
1 parent ac1dc77 commit 1eac5cf

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Choosing to inject any extra ConfigProvider would cause having duplicates which
6363
6464
> **Do not enable development mode in production!**
6565
66-
If you're installing the project for development, you should **enable** development mode, by running:
66+
If you're installing the project for development, you should **enable** development mode by running:
6767
6868
```shell
6969
composer development-enable
@@ -75,15 +75,15 @@ You can **disable** development mode by running:
7575
composer development-disable
7676
```
7777
78-
You can **check** development status by running:
78+
You can **check** the development status by running:
7979
8080
```shell
8181
composer development-status
8282
```
8383
8484
### Prepare config files
8585
86-
* **optional**: in order to run/create tests, duplicate `config/autoload/local.test.php.dist` as `config/autoload/local.test.php` <- this creates a new in-memory database that your tests will run on
86+
* **optional**: to run/create tests, duplicate `config/autoload/local.test.php.dist` as `config/autoload/local.test.php` <- this creates a new in-memory database that your tests will run on
8787
8888
### Setup database
8989
@@ -134,13 +134,13 @@ More details on how fixtures work can be found in `dotkernel/dot-data-fixtures`
134134
135135
### Mail configuration
136136
137-
If your application will send emails, you must configure an outgoing mail server under `config/autoload/mail.global.php`.
137+
If your application sends emails, you must configure an outgoing mail server under `config/autoload/mail.global.php`.
138138
139139
### Sync GeoLite2 databases
140140
141141
#### Full sync
142142
143-
You can download/update all GeoLite2 databases at once, by running the following command:
143+
You can download/update all GeoLite2 databases at once by running the following command:
144144
145145
```shell
146146
php ./bin/cli.php geoip:synchronize
@@ -156,7 +156,7 @@ country: n/a -> 2015-10-21 04:29:00
156156
157157
#### Selective sync
158158
159-
You can download/update a specific GeoLite2 database, by running the following command:
159+
You can download/update a specific GeoLite2 database by running the following command:
160160
161161
```shell
162162
php ./bin/cli.php geoip:synchronize -d <database>
@@ -197,7 +197,7 @@ npm run prod
197197
198198
### Test the installation
199199
200-
If you are using virtual hosts as described in the [Dotkernel documentation] (https://docs.dotkernel.org/development/) you need you modify the permissions of the `data`, `public/uploads` and `log` folders:
200+
If you are using virtual hosts as described in the [Dotkernel documentation] (https://docs.dotkernel.org/development/), you need to modify the permissions of the `data`, `public/uploads` and `log` folders:
201201
202202
```shell
203203
chmod -R 777 data

src/Core/src/App/src/Entity/AbstractEntity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ abstract class AbstractEntity implements ArraySerializableInterface, EntityInter
2222

2323
public function __construct()
2424
{
25-
$this->uuid = Uuid::uuid4();
25+
$this->uuid = Uuid::uuid7();
2626
}
2727

2828
public function getUuid(): UuidInterface

src/User/src/Service/UserAvatarService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ protected function createFileName(string $fileType): string
117117
{
118118
return sprintf(
119119
'avatar-%s.%s',
120-
Uuid::uuid4()->toString(),
120+
Uuid::uuid7()->toString(),
121121
self::EXTENSIONS[$fileType]
122122
);
123123
}

0 commit comments

Comments
 (0)