Rob
Rob
Whichever works best for you. :shrug: It is also a matter of personal preference. I like to use the Docker container.
I am also able to reproduce it by using https://github.com/dunglas/symfony-docker as a skeleton setup, then changing the default `routes.yaml` to: ```yaml controllers: resource: ../src/Controller/ type: attribute prefix: nl_NL: /nl ```...
If I remove the dev routes loaded by the framework bundle, then dump the `CompiledUrlGeneratorDumper.php` variables before it actually fails, I have the following, which shows why it fails: ```...
I understand that. But the `AttributeClassLoader` is aware of those as far as I can tell, so in theory this should be relatively easy to add.
Wouldn't something like the following suffice? ```diff diff --git i/src/Symfony/Component/Routing/Loader/AttributeClassLoader.php w/src/Symfony/Component/Routing/Loader/AttributeClassLoader.php index 254582bf35..6b0f4e8e88 100644 --- i/src/Symfony/Component/Routing/Loader/AttributeClassLoader.php +++ w/src/Symfony/Component/Routing/Loader/AttributeClassLoader.php @@ -242,8 +242,13 @@ abstract class AttributeClassLoader implements LoaderInterface $collection->add($name, $route, $priority);...
Ah rats, nevermind. Trying to write out a test scenario I actually discovered that this is probably not possible because the alias will only point to the last added locale...
Should the code throw an exception instead then? Since using an alias on a localized route either does not work, or does not work as expected (only aliasing the last...
> I've come to the same conclusion, same error when using attribute or YAML. So this is more a feature than a bug to me. ~~Are you sure about this...
@stof @xabbuh do you see any viable path forward here?
Well, in theory, yes. But you would not reference an alias that way in your code or twig templates, right? You would just call it `my_alias`. Then again, you also...