与symfony2捆绑包混淆 [英] Confused with symfony2 bundles

查看:92
本文介绍了与symfony2捆绑包混淆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对symfony2捆绑包有点困惑.

I am little bit confused with symfony2 bundles.

我想知道symfony中的所有内容都是捆绑的,包括主要应用程序.

I want to know that does everything in symfony is bundle including main application.

我一直在思考,因为网站核心是我可以编写代码来使用捆绑软件的地方,就像我们使用主要应用程序代码中的插件一样.

I was thinking as Core of site is somewhere i can write code to use bundles like we use plugins from main application code.

或者Symfony中没有核心内容.核心本身就是捆绑包

Or there is no core thing in Symfony . The core itself will be bundle

推荐答案

Symfony2是基于捆绑的框架 =>因此,一切以及核心本身都是捆绑包.

Symfony2 is bundle-based framework => So, everything, as well as the core itself is a bundle.

您可以在app/AppKernel.php中查看默认情况下加载的捆绑软件.

You can see which bundle is loaded by default in app/AppKernel.php.

但是Symfony2确实还包含一个按组件(供应商/symfony/src/Symfony/组件)组织的库.捆绑软件中的代码可以使用此库.

But Symfony2 does also include a library, organized by "components (vendor/symfony/src/Symfony/Components). Code in bundle can use this library..

这篇关于与symfony2捆绑包混淆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆