Hi,
I'm stumbling on kinda the same problem trying to load a specific
(including the kernel.environment value in its path) and I was wondering if
by any chance you were able to find a solution.
Cheers.
Le mardi 31 juillet 2012 15:58:38 UTC+2, Toan Nguyen a écrit :
>
> Hi all,
>
> As I know we can create some environments. But I can't use
> kernel.environment variable in imports of config.
> Example, I want to import myconfig which depend on environment like:
>
> // config/config.yml file
> imports:
> - { resource: parameters.ini }
> - { resource: security.yml }
> - { resource:
> "@AicMapBundle/Resources/config/%kernel.environment%.mapconfig.yml" }
> - { resource:
> "@AicMapBundle/Resources/config/%kernel.environment%.layers.yml" }
>
> But It doesn't work. So I must modify config_dev.yml and config_prod.yml
> file, such as:
>
> // config_prod.yml file
> imports:
> - { resource: config.yml }
> - { resource: "@AicMapBundle/Resources/config/prod.mapconfig.yml" }
> - { resource: "@AicMapBundle/Resources/config/prod.layers.yml" }
>
> // config_dev.yml file
> imports:
> - { resource: config.yml }
> - { resource: "@AicMapBundle/Resources/config/dev.mapconfig.yml" }
> - { resource: "@AicMapBundle/Resources/config/dev.layers.yml" }
>
> Do you know any other way which has same result?
>
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en