francisbesset / sfcontextbundle
Symfony2中的symfony的sfContext
v1.0.0
2013-11-13 15:38 UTC
Requires
- symfony/framework-bundle: ~2.0
This package is auto-updated.
Last update: 2024-08-24 03:45:35 UTC
README
在您的Symfony2项目中使用出色的sfContext实例。
信息
这个包是一个玩笑。请勿使用。
安装
首先,使用Composer获取sfContextBundle
composer require francisbesset/sfContextBundle:~1.0
然后注册该包到kernel中
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new sfContextBundle\sfContextBundle(), ); }
用法
<?php // any class, code sfContext::getInstance()->getContainer();
享受吧!