Symfony 4: How load config depending on host

174
January 04, 2020, at 5:00 PM

Now for routing using config specified in annotations

controllers:
    resource: ../../src/Controller/Frontend
    type: annotation
    prefix:
        en: ''
        fr: '/fr'
        de: '/de'

For all domains language without prefix now is english. Now to set language without prefix depending on host? For example for a domain in Germany I want the config to be like this:

controllers:
    resource: ../../src/Controller/Frontend
    type: annotation
    prefix:
        de: ''
        fr: '/fr'
        en: '/en'
Rent Charter Buses Company
READ ALSO
Advertisement Website with different Payment options etc. What technologys? Wordpress, selfmade? Learn to code :) Newbe Questions [closed]

Advertisement Website with different Payment options etc. What technologys? Wordpress, selfmade? Learn to code :) Newbe Questions [closed]

Want to improve this question? Update the question so it focuses on one problem only by editing this post

165
return mysql_fetch_assoc results as an array

return mysql_fetch_assoc results as an array

I am trying to retreive results from a mysql query as an arrayHere is a sample of the code :

194
Easy Digital Downloads - Fire PHP when transaction was successful goes wrong

Easy Digital Downloads - Fire PHP when transaction was successful goes wrong

I’m using Easy Digital Downloads for my Wordpress webshopAfter someone buys a item it needs to add credits to the MySQL database

141
Is it possible to generate an ED25519 keypair with the built-in openssl_pkey_new function in PHP?

Is it possible to generate an ED25519 keypair with the built-in openssl_pkey_new function in PHP?

I'm trying to generate an ED25519 private/public keypair with the built-in openssl_pkey_new in PHP, but i don't get it working

185