web-ant / webant-corebundle
WebAnt的核心系统
v1.3.2
2016-01-26 10:27 UTC
Requires
- php: >=5.3.3
- doctrine/dbal: <2.5
- doctrine/doctrine-bundle: ~1.2
- doctrine/orm: ~2.2,>=2.2.3,<2.5
- friendsofsymfony/rest-bundle: ~1.4
- jms/serializer: ~0.16
- jms/serializer-bundle: ~0.13
- symfony/framework-bundle: ~2.3
Requires (Dev)
- liip/functional-test-bundle: ~1.0
- phpunit/phpunit: ~4.5
This package is not auto-updated.
Last update: 2024-09-24 04:04:47 UTC
README
WebAnt的核心系统
安装
步骤 1: 安装 WebAntCoreBundle
安装此包的首选方式是依赖 Composer。只需在您的 composer.json 文件中添加即可
{ "require": { // ... "web-ant/webant-corebundle": "dev-master" } }
步骤 2: 启用包
最后,在内核中启用该包
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new WebAnt\CoreBundle\CoreBundle(), ); }
步骤 3: 我们类继承自 AbstractController
现在您必须连接 AbstractController 并从它继承类,例如
<?php // RootDir/src/DemoBundle/Controller/DemoController.php; namespace /src/DemoBundle/Controller; use WebAnt\CoreBundle\Controller\AbstractController; class DemoController extends AbstractController { ... }