firestorm23/command-runner-bundle

Fork of borNfreee/CommandRunnerBundle. Executes symfony console command from a Controller.

Installs: 14

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Type:symfony-bundle

pkg:composer/firestorm23/command-runner-bundle

dev-master 2016-01-20 21:38 UTC

This package is not auto-updated.

Last update: 2025-10-01 23:19:52 UTC


README

This is fork of borNfreee/CommandRunnerBundle. I fixed the issue with wrong work of non-value command parameters.

CommandRunnerBundle

Executes Symfony2 console command from Controller (HTTP request).

Installation

This bundle is available on Packagist:

To install it, run:

$ composer require mrafalko/command-runner-bundle:dev-master

Then add the bundle to app/AppKernel.php:

public function registerBundles()
{
    return array(
        ...
        new Mrafalko\CommandRunnerBundle\MrafalkoCommandRunnerBundle(),
        ...
    );
}

Then import routing file:

# app/config/routing.yml
mrafalko_command_runner:
    resource: "@MrafalkoCommandRunnerBundle/Controller/CommandRunnerController.php"
    type: annotation
    prefix:   /

Examples

Run the command from your URL:

http://yourdomain.dev/command-runner/your:command:name