简体   繁体   English

Symfony-控制台-启用捆绑

[英]Symfony - Console - Enable bundle

Is there any console command to enable an existing bundle ? 是否有任何控制台命令来启用现有捆绑软件?

  • I'm running Symfony 2.7.2 我正在运行Symfony 2.7.2
  • the bundle files & folders are already here 捆绑包文件和文件夹已经在这里
  • it's a custom bundle, no dependencies thought composer 这是一个自定义包,没有依赖者认为是作曲家

I'm searching for a command to prevent the user to open himself the appkernel.php file and add the line. 我正在搜索一个命令, 以防止用户打开自己的appkernel.php文件并添加该行。

There is no official command to do that, but i saw a topic where a guy created one for this purpose. 没有官方命令执行此操作,但是我看到一个主题,一个人为此目的创建了一个主题。 May be you could try it : 也许您可以尝试一下:

Is there a way to update automatically the AppKernel in symfony2? 有没有办法在symfony2中自动更新AppKernel?

Moreover, there is a github discussion on this subject : 此外,关于此主题还有github讨论:

https://github.com/symfony/symfony/issues/6082 https://github.com/symfony/symfony/issues/6082

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用PHPExcel Bundle for Symfony2启用单元缓存 - Enable cell caching with PHPExcel Bundle for Symfony2 通过控制台在symfony中创建包时出现InvalidConfigurationException - InvalidConfigurationException while creating a bundle in symfony by console 依赖包中的Symfony2控制台命令 - Symfony2 console command in a dependent bundle 通过自定义捆绑包的Symfony路由仅在控制台模式下工作 - Symfony routing through custom bundle only works in console mode 在Symfony2中安装新软件包后无法使用Netbeans控制台(错误:必须选择Symfony2控制台) - cant use Netbeans console after installing new bundle in Symfony2 (error: Symfony2 console must be selected) PHP应用程序\\控制台无法为Symfony2创建捆绑包 - PHP app\console wont work trying to create bundle for Symfony2 PHP app\console 无法尝试为 Symfony 2 创建捆绑包 - PHP app\console wont work trying to create bundle for Symfony 2 我们可以使用Symfony \\ Bundle \\ FrameworkBundle \\ Test \\ WebTestCase进行symfony 2控制台命令测试吗? - Can we use Symfony\Bundle\FrameworkBundle\Test\WebTestCase for symfony 2 console commands testing? 在没有 Symfony 框架包的情况下,如何使用依赖注入的 Symfony 控制台? - how do I use Symfony console with dependency injection, without the Symfony framework bundle? 与另一个捆绑软件捆绑在一起作为Symfony中的依赖项 - Bundle with another bundle as a dependency in Symfony
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM