SimpleApiBundle:一个Symfony 2 Bundle,允许你创建一个简单的API
SimpleApiBundle描述特征。安装使用Composer安装库:composer require betsol/simple-api-bundle ~1
。将bundle添加到应用程序的内核:// app/AppKernel.php
。
class AppKernel extends Kernel {
public function registerBundles () {
$bundles = array(
...
new Betsol\\Bundle\\SimpleApiBundle(),
);
...
}
}
将捆绑配置引入您的配置文件:
# app/config.yml
simpl