【问题标题】:How can I find app/AppKernel.php in Symfony 4?如何在 Symfony 4 中找到 app/AppKernel.php?
【发布时间】:2018-07-12 16:22:13
【问题描述】:
【问题讨论】:
标签:
php
symfony
symfony4
bundles
symfony-http-kernel
【解决方案1】:
Symfony 4 的结构与 Symfony 3 不同
如果您想在您的应用程序中启用捆绑,您必须更改 config/bundles.php 文件
类似的东西
// config/bundles.php
return [
// 'all' means that the bundle is enabled for any Symfony environment
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true],
Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
.
.
.
];
有关更多信息,请参阅tutorial