Skip to content

Commit 39e7492

Browse files
author
roadiz-ci
committed
perf: Improved event subscriber registration and initialization
1 parent 6f68116 commit 39e7492

33 files changed

+172
-677
lines changed

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"phpdocumentor/reflection-docblock": "^5.2",
4040
"phpoffice/phpspreadsheet": "^1.15",
4141
"ramsey/uuid": "^4.7",
42-
"rezozero/crypto": "^1.0.0",
4342
"rezozero/intervention-request-bundle": "~3.0.0",
4443
"rezozero/liform-bundle": "^0.19",
4544
"rezozero/tree-walker": "^1.3.0",

config/fixtures/settings.json

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
{
33
"name": "force_locale",
44
"visible": true,
5-
"encrypted": false,
65
"description": "Force displaying translation locale in every node’ paths. This should be *ON* if you redirect users based on their language on homepage.",
76
"setting_group": {
87
"name": "Development",
@@ -15,7 +14,6 @@
1514
"name": "force_locale_with_urlaliases",
1615
"description": "force_locale_with_urlaliases.help",
1716
"visible": true,
18-
"encrypted": false,
1917
"setting_group": {
2018
"name": "Development",
2119
"in_menu": true
@@ -25,7 +23,6 @@
2523
{
2624
"name": "leaflet_map_tile_url",
2725
"value": "https:\/\/{s}.tile.osm.org\/{z}\/{x}\/{y}.png",
28-
"encrypted": false,
2926
"description": "Default maps tiles layout when using *Leaflet*.",
3027
"visible": true,
3128
"setting_group": {
@@ -38,7 +35,6 @@
3835
{
3936
"name": "maps_default_location",
4037
"value": "{\"lat\":45.769785, \"lng\":4.833967, \"zoom\":14}",
41-
"encrypted": false,
4238
"description": "Default maps marker location.",
4339
"visible": true,
4440
"setting_group": {
@@ -52,7 +48,6 @@
5248
"name": "openid_button_label",
5349
"description": "openid_button_label.help",
5450
"visible": true,
55-
"encrypted": false,
5651
"setting_group": {
5752
"name": "OpenId",
5853
"in_menu": true
@@ -62,7 +57,6 @@
6257
{
6358
"name": "support_email_address",
6459
"visible": true,
65-
"encrypted": false,
6660
"description": "Support email address, used in every system emails footer",
6761
"setting_group": {
6862
"name": "Emailings",
@@ -74,7 +68,6 @@
7468
{
7569
"name": "email_sender",
7670
"visible": true,
77-
"encrypted": false,
7871
"description": "Default sender email, used as origin for every system email sent. This email **must be allowed by your SMTP server.**",
7972
"setting_group": {
8073
"name": "Emailings",
@@ -86,7 +79,6 @@
8679
{
8780
"name": "email_sender_name",
8881
"visible": true,
89-
"encrypted": false,
9082
"setting_group": {
9183
"name": "Emailings",
9284
"in_menu": true
@@ -97,7 +89,6 @@
9789
{
9890
"name": "universal_analytics_id",
9991
"visible": true,
100-
"encrypted": false,
10192
"setting_group": {
10293
"name": "APIs",
10394
"in_menu": true
@@ -108,18 +99,6 @@
10899
{
109100
"name": "google_tag_manager_id",
110101
"visible": true,
111-
"encrypted": false,
112-
"setting_group": {
113-
"name": "APIs",
114-
"in_menu": true
115-
},
116-
"type": 0,
117-
"default_values": ""
118-
},
119-
{
120-
"name": "instagram_access_token",
121-
"visible": true,
122-
"encrypted": true,
123102
"setting_group": {
124103
"name": "APIs",
125104
"in_menu": true
@@ -130,7 +109,6 @@
130109
{
131110
"name": "seo_description",
132111
"visible": true,
133-
"encrypted": false,
134112
"setting_group": {
135113
"name": "Site information",
136114
"in_menu": true
@@ -141,7 +119,6 @@
141119
{
142120
"name": "site_name",
143121
"visible": true,
144-
"encrypted": false,
145122
"setting_group": {
146123
"name": "Site information",
147124
"in_menu": true
@@ -152,7 +129,6 @@
152129
{
153130
"name": "maintenance_mode",
154131
"visible": true,
155-
"encrypted": false,
156132
"description": "Switch maintenance mode. Only login page will be available for public requests.",
157133
"setting_group": {
158134
"name": "Site information",
@@ -164,7 +140,6 @@
164140
{
165141
"name": "site_copyright",
166142
"visible": true,
167-
"encrypted": false,
168143
"setting_group": {
169144
"name": "Site information",
170145
"in_menu": true
@@ -174,7 +149,6 @@
174149
},
175150
{
176151
"name": "main_color",
177-
"encrypted": false,
178152
"visible": true,
179153
"setting_group": {
180154
"name": "Site information",
@@ -186,7 +160,6 @@
186160
{
187161
"name": "admin_image",
188162
"visible": true,
189-
"encrypted": false,
190163
"setting_group": {
191164
"name": "Site information",
192165
"in_menu": true
@@ -197,7 +170,6 @@
197170
{
198171
"name": "login_image",
199172
"visible": true,
200-
"encrypted": false,
201173
"description": "Replace random *Splashbase* login images with your own.",
202174
"setting_group": {
203175
"name": "Site information",
@@ -209,7 +181,6 @@
209181
{
210182
"name": "facebook_url",
211183
"visible": true,
212-
"encrypted": false,
213184
"setting_group": {
214185
"name": "Social networks",
215186
"in_menu": true
@@ -220,7 +191,6 @@
220191
{
221192
"name": "instagram_url",
222193
"visible": true,
223-
"encrypted": false,
224194
"setting_group": {
225195
"name": "Social networks",
226196
"in_menu": true
@@ -231,7 +201,6 @@
231201
{
232202
"name": "pinterest_url",
233203
"visible": true,
234-
"encrypted": false,
235204
"setting_group": {
236205
"name": "Social networks",
237206
"in_menu": true
@@ -242,7 +211,6 @@
242211
{
243212
"name": "twitter_url",
244213
"visible": true,
245-
"encrypted": false,
246214
"setting_group": {
247215
"name": "Social networks",
248216
"in_menu": true
@@ -253,7 +221,6 @@
253221
{
254222
"name": "linkedin_url",
255223
"visible": true,
256-
"encrypted": false,
257224
"setting_group": {
258225
"name": "Social networks",
259226
"in_menu": true
@@ -264,7 +231,6 @@
264231
{
265232
"name": "youtube_url",
266233
"visible": true,
267-
"encrypted": false,
268234
"setting_group": {
269235
"name": "Social networks",
270236
"in_menu": true
@@ -276,7 +242,6 @@
276242
"name": "custom_preview_scheme",
277243
"description": "custom_preview_scheme.help",
278244
"visible": true,
279-
"encrypted": false,
280245
"setting_group": {
281246
"name": "Site information",
282247
"in_menu": true
@@ -287,7 +252,6 @@
287252
"name": "custom_public_scheme",
288253
"description": "custom_public_scheme.help",
289254
"visible": true,
290-
"encrypted": false,
291255
"setting_group": {
292256
"name": "Site information",
293257
"in_menu": true
@@ -298,7 +262,6 @@
298262
"name": "dashboard_iframe",
299263
"description": "dashboard_iframe.help",
300264
"visible": true,
301-
"encrypted": false,
302265
"setting_group": {
303266
"name": "Site information",
304267
"in_menu": true

config/packages/roadiz_core.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ roadiz_core:
1111
# Be careful if you are using a reverse-proxy cache, YOU MUST vary on Accept-Language header and normalize it.
1212
# @see https://varnish-cache.org/docs/6.3/users-guide/increasing-your-hitrate.html#http-vary
1313
useAcceptLanguageHeader: '%env(bool:APP_USE_ACCEPT_LANGUAGE_HEADER)%'
14-
security:
15-
private_key_name: default
1614
themes: []
1715
medias:
1816
unsplash_client_id: '%env(string:APP_UNSPLASH_CLIENT_ID)%'

config/services.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ services:
3434
$appNamespace: '%roadiz_core.app_namespace%'
3535
$projectDir: '%kernel.project_dir%'
3636
$exportDir: '%kernel.project_dir%/var/export'
37-
$privateKeyName: '%roadiz_core.private_key_name%'
3837
$generatedEntitiesDir: '%roadiz_core.generated_entities_dir%'
3938
$serializedNodeTypesDir: '%roadiz_core.serialized_node_types_dir%'
4039
$importFilesConfigPath: '%roadiz_core.import_files_config_path%'
@@ -436,12 +435,6 @@ services:
436435

437436
RZ\Roadiz\Random\PasswordGenerator: ~
438437

439-
RZ\Crypto\KeyChain\KeyChainInterface:
440-
alias: RZ\Crypto\KeyChain\AsymmetricFilesystemKeyChain
441-
442-
RZ\Crypto\KeyChain\AsymmetricFilesystemKeyChain:
443-
arguments: ['%kernel.project_dir%/var/secret', true]
444-
445438
JMS\Serializer\Construction\ObjectConstructorInterface:
446439
alias: RZ\Roadiz\CoreBundle\Serializer\ObjectConstructor\ObjectConstructor
447440

migrations/Version20240214143213.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace RZ\Roadiz\Migrations;
6+
7+
use Doctrine\DBAL\Schema\Schema;
8+
use Doctrine\Migrations\AbstractMigration;
9+
10+
/**
11+
* Auto-generated Migration: Please modify to your needs!
12+
*/
13+
final class Version20240214143213 extends AbstractMigration
14+
{
15+
public function getDescription(): string
16+
{
17+
return 'Removed useless nodes_sources meta_keywords field';
18+
}
19+
20+
public function up(Schema $schema): void
21+
{
22+
// this up() migration is auto-generated, please modify it to your needs
23+
$this->addSql('ALTER TABLE nodes_sources DROP meta_keywords');
24+
}
25+
26+
public function down(Schema $schema): void
27+
{
28+
// this down() migration is auto-generated, please modify it to your needs
29+
$this->addSql('ALTER TABLE nodes_sources ADD meta_keywords LONGTEXT NOT NULL');
30+
}
31+
}

migrations/Version20240214143849.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace RZ\Roadiz\Migrations;
6+
7+
use Doctrine\DBAL\Schema\Schema;
8+
use Doctrine\Migrations\AbstractMigration;
9+
10+
/**
11+
* Auto-generated Migration: Please modify to your needs!
12+
*/
13+
final class Version20240214143849 extends AbstractMigration
14+
{
15+
public function getDescription(): string
16+
{
17+
return 'Removed useless node priority';
18+
}
19+
20+
public function up(Schema $schema): void
21+
{
22+
// this up() migration is auto-generated, please modify it to your needs
23+
$this->addSql('ALTER TABLE nodes DROP priority');
24+
}
25+
26+
public function down(Schema $schema): void
27+
{
28+
// this down() migration is auto-generated, please modify it to your needs
29+
$this->addSql('ALTER TABLE nodes ADD priority NUMERIC(2, 1) NOT NULL');
30+
}
31+
}

migrations/Version20240214145403.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace RZ\Roadiz\Migrations;
6+
7+
use Doctrine\DBAL\Schema\Schema;
8+
use Doctrine\Migrations\AbstractMigration;
9+
10+
/**
11+
* Auto-generated Migration: Please modify to your needs!
12+
*/
13+
final class Version20240214145403 extends AbstractMigration
14+
{
15+
public function getDescription(): string
16+
{
17+
return 'Removed useless setting encryption (use symfony:secrets)';
18+
}
19+
20+
public function up(Schema $schema): void
21+
{
22+
// this up() migration is auto-generated, please modify it to your needs
23+
$this->addSql('ALTER TABLE settings DROP encrypted');
24+
}
25+
26+
public function down(Schema $schema): void
27+
{
28+
// this down() migration is auto-generated, please modify it to your needs
29+
$this->addSql('ALTER TABLE settings ADD encrypted TINYINT(1) DEFAULT 0 NOT NULL');
30+
}
31+
}

src/Console/DecodePrivateKeyCommand.php

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

0 commit comments

Comments
 (0)