Skip to content

Commit bb650c2

Browse files
committed
Updated routing recipe
1 parent 3dc6654 commit bb650c2

File tree

4 files changed

+31
-22
lines changed

4 files changed

+31
-22
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ DATABASE_EMULATE_NATURAL_SORT=0
3131
# General settings
3232
###################################################################################
3333

34-
# The public reachable URL of this Part-DB installation. This is used for generating links in SAML and email templates
34+
# The public reachable URL of this Part-DB installation. This is used for generating links in SAML and email templates or when no request context is available.
3535
# This must end with a slash!
3636
DEFAULT_URI="https://partdb.changeme.invalid/"
3737

config/reference.php

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1548,6 +1548,11 @@
15481548
* dump_destination?: scalar|null, // A stream URL where dumps should be written to. // Default: null
15491549
* theme?: "dark"|"light", // Changes the color of the dump() output when rendered directly on the templating. "dark" (default) or "light". // Default: "dark"
15501550
* }
1551+
* @psalm-type MakerConfig = array{
1552+
* root_namespace?: scalar|null, // Default: "App"
1553+
* generate_final_classes?: bool, // Default: true
1554+
* generate_final_entities?: bool, // Default: false
1555+
* }
15511556
* @psalm-type WebpackEncoreConfig = array{
15521557
* output_path: scalar|null, // The path where Encore is building the assets - i.e. Encore.setOutputPath()
15531558
* crossorigin?: false|"anonymous"|"use-credentials", // crossorigin value when Encore.enableIntegrityHashes() is used, can be false (default), anonymous or use-credentials // Default: false
@@ -1672,12 +1677,6 @@
16721677
* post_processors?: array<string, array<string, mixed>>,
16731678
* },
16741679
* }
1675-
* @psalm-type DamaDoctrineTestConfig = array{
1676-
* enable_static_connection?: mixed, // Default: true
1677-
* enable_static_meta_data_cache?: bool, // Default: true
1678-
* enable_static_query_cache?: bool, // Default: true
1679-
* connection_keys?: list<mixed>,
1680-
* }
16811680
* @psalm-type TwigExtraConfig = array{
16821681
* cache?: bool|array{
16831682
* enabled?: bool, // Default: false
@@ -2373,6 +2372,13 @@
23732372
* invalidate_on_env_change?: bool, // Default: true
23742373
* },
23752374
* }
2375+
* @psalm-type JbtronicsTranslationEditorConfig = array{
2376+
* translations_path?: scalar|null, // Default: "%translator.default_path%"
2377+
* format?: scalar|null, // Default: "xlf"
2378+
* xliff_version?: scalar|null, // Default: "2.0"
2379+
* use_intl_icu_format?: bool, // Default: false
2380+
* writer_options?: list<scalar|null>,
2381+
* }
23762382
* @psalm-type ApiPlatformConfig = array{
23772383
* title?: scalar|null, // The title of the API. // Default: ""
23782384
* description?: scalar|null, // The description of the API. // Default: ""
@@ -2628,17 +2634,11 @@
26282634
* ...<mixed>
26292635
* },
26302636
* }
2631-
* @psalm-type MakerConfig = array{
2632-
* root_namespace?: scalar|null, // Default: "App"
2633-
* generate_final_classes?: bool, // Default: true
2634-
* generate_final_entities?: bool, // Default: false
2635-
* }
2636-
* @psalm-type JbtronicsTranslationEditorConfig = array{
2637-
* translations_path?: scalar|null, // Default: "%translator.default_path%"
2638-
* format?: scalar|null, // Default: "xlf"
2639-
* xliff_version?: scalar|null, // Default: "2.0"
2640-
* use_intl_icu_format?: bool, // Default: false
2641-
* writer_options?: list<scalar|null>,
2637+
* @psalm-type DamaDoctrineTestConfig = array{
2638+
* enable_static_connection?: mixed, // Default: true
2639+
* enable_static_meta_data_cache?: bool, // Default: true
2640+
* enable_static_query_cache?: bool, // Default: true
2641+
* connection_keys?: list<mixed>,
26422642
* }
26432643
* @psalm-type ConfigType = array{
26442644
* imports?: ImportsConfig,

config/routes.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# yaml-language-server: $schema=../vendor/symfony/routing/Loader/schema/routing.schema.json
2+
3+
# This file is the entry point to configure the routes of your app.
4+
# Methods with the #[Route] attribute are automatically imported.
5+
# See also https://symfony.com/doc/current/routing.html
6+
7+
# To list all registered routes, run the following command:
8+
# bin/console debug:router
9+
110
# Redirect every url without an locale to the locale of the user/the global base locale
211

312
scan_qr:
@@ -16,4 +25,4 @@ redirector:
1625
url: ".*"
1726
controller: App\Controller\RedirectController::addLocalePart
1827
# Dont match localized routes (no redirection loop, if no root with that name exists) or API prefixed routes
19-
condition: "not (request.getPathInfo() matches '/^\\\\/([a-z]{2}(_[A-Z]{2})?|api)\\\\//')"
28+
condition: "not (request.getPathInfo() matches '/^\\\\/([a-z]{2}(_[A-Z]{2})?|api)\\\\//')"

symfony.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -611,12 +611,12 @@
611611
]
612612
},
613613
"symfony/routing": {
614-
"version": "7.3",
614+
"version": "7.4",
615615
"recipe": {
616616
"repo": "github.com/symfony/recipes",
617617
"branch": "main",
618-
"version": "7.0",
619-
"ref": "21b72649d5622d8f7da329ffb5afb232a023619d"
618+
"version": "7.4",
619+
"ref": "bc94c4fd86f393f3ab3947c18b830ea343e51ded"
620620
},
621621
"files": [
622622
"config/packages/routing.yaml",

0 commit comments

Comments
 (0)