graviton / json-command-bundle
Symfony bundle to graviton/json-command
Installs: 3 465
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 1
Open Issues: 0
Requires
- php: >=7.3
- graviton/json-command: ~1
- jms/serializer-bundle: >=1.0
- symfony/framework-bundle: >=4.3.0
Requires (Dev)
- phpunit/phpunit: @stable
This package is auto-updated.
Last update: 2024-10-18 14:13:05 UTC
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>