xiag/json-command-bundle
最新稳定版本:v1.0.1
Composer 安装命令:
composer require xiag/json-command-bundle
包简介
Symfony bundle to graviton/json-command
README 文档
README
Symfony bundle to the graviton/json-command.
Installation
Step 1: Download the Bundle
Run
composer require graviton/json-command-bundle
or add to your composer.json
"graviton/json-command-bundle": "*",
Step 2: Enable the Bundle
Then, enable the bundle by adding the following line in the app/AppKernel.php
file of your project:
<?php class AppKernel extends Kernel { public function registerBundles() { $bundles = [ // ... new \Graviton\JsonCommandBundle\JsonCommandBundle(), ]; // ... } // ... }
How to use
Register new service:
<!-- app/config/services.xml --> <service id="my.node.executor" class="%graviton.json_command.jsonexecutor.class%"> <factory service="graviton.json_command.jsonexecutor.factory" method="createJsonExecutor"/> <argument>node</argument> <argument>array</argument> <argument type="collection"> <argument>-type=general</argument> </argument> </service>
统计信息
- 总下载量: 2.61k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-07-31