简体   繁体   中英

Get Symfony2's kernel in config

how can I get the AppKernel obj in the php-version of the Symfony2 configuration?

I need a parameter who's set in app.php/app_dev.php

Thanks for helping!

您可以使用$container->getParameter()来访问参数,例如

$container->getParameter('domain1.db_host')

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM