wshafer / mezzio-symfony-router

Symfony Router integration for Mezzio
2 stars 1 forks source link

How can I use subdomains like symfony? #1

Open nepster-web opened 4 years ago

nepster-web commented 4 years ago

So, I have several subdomains for my project with mezzio framework:

How can I use it in routes?

This example does not work:

$app->get('journal.example.com', Journal\Handler\HomePageHandler::class, 'journal.home');

How can I set options like symfony& https://symfony.com/doc/current/routing.html#sub-domain-routing

wshafer commented 4 years ago

Hey @nepster-web - Just saw this issue along with your conversation with Matthew. I'll see if I can get that working per your and Matts conversation.

wshafer commented 4 years ago

@nepster-web - So it turns out that while the setOptions method exists as Matt said, there's no way to get these. Gonna talk with Matt and see how we can address this issue.

nepster-web commented 4 years ago

I also wanted to resolve this issue but not yet had time. However, I would like to participate in this.

Maybe we can work as a team?