Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 Symfony2 配置的 php 版本中获取 AppKernel obj?
我需要一个在 app.php/app_dev.php 中设置的参数
感谢您的帮助!
您可以使用$container->getParameter()来访问参数,例如
$container->getParameter()
$container->getParameter('domain1.db_host')