Skip to content

libgraviton/json-command-bundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GravitonJsonCommandBundle

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>

About

Symfony bundle to "graviton/json-command"

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages