diff --git a/.env b/.env index 3aa40f4..4645e13 100644 --- a/.env +++ b/.env @@ -38,3 +38,9 @@ MAILER_DSN=null://null SENTRY_DSN= ###< sentry/sentry-symfony ### XDEBUG_MODE=coverage + +###> symfony/routing ### +# Configure how to generate URLs in non-HTTP contexts, such as CLI commands. +# See https://symfony.com/doc/current/routing.html#generating-urls-in-commands +DEFAULT_URI=http://localhost +###< symfony/routing ### diff --git a/config/packages/routing.yaml b/config/packages/routing.yaml index 423e6d9..0f34f87 100644 --- a/config/packages/routing.yaml +++ b/config/packages/routing.yaml @@ -1,8 +1,8 @@ framework: router: - # Configure how to generate URLs in non-HTTP contexts, such as CLI commands. - # See https://symfony.com/doc/current/routing.html#generating-urls-in-commands - #default_uri: http://localhost + # Configure how to generate URLs in non-HTTP contexts, such as CLI commands. + # See https://symfony.com/doc/current/routing.html#generating-urls-in-commands + default_uri: '%env(DEFAULT_URI)%' when@prod: framework: diff --git a/config/routes.yaml b/config/routes.yaml index dfbec3c..cef258c 100644 --- a/config/routes.yaml +++ b/config/routes.yaml @@ -1,5 +1,11 @@ +# yaml-language-server: $schema=../vendor/symfony/routing/Loader/schema/routing.schema.json + +# This file is the entry point to configure the routes of your app. +# Methods with the #[Route] attribute are automatically imported. +# See also https://symfony.com/doc/current/routing.html + +# To list all registered routes, run the following command: +# bin/console debug:router + controllers: - resource: - path: ../src/Controller/ - namespace: Tvdt\Controller - type: attribute + resource: routing.controllers diff --git a/symfony.lock b/symfony.lock index 46ae701..9599948 100644 --- a/symfony.lock +++ b/symfony.lock @@ -247,12 +247,12 @@ ] }, "symfony/routing": { - "version": "7.2", + "version": "8.0", "recipe": { "repo": "github.com/symfony/recipes", "branch": "main", - "version": "7.0", - "ref": "21b72649d5622d8f7da329ffb5afb232a023619d" + "version": "7.4", + "ref": "bc94c4fd86f393f3ab3947c18b830ea343e51ded" }, "files": [ "config/packages/routing.yaml",