ride/lib-cli-symfony

Creates a wrapper around Symfony Console Commands to be executed inside Ride.

dev-master 2015-06-08 08:14 UTC

This package is not auto-updated.

Last update: 2024-10-26 17:19:48 UTC


README

This module integrates Symfony Console component into the Ride framework allowing you to execute Symfony Commands inside Ride.

Installation

composer require ride/lib-cli-symfony:dev-master

Usage

To use, extend AbstractSymfonyCommand:

class SymfonyCommand extends AbstractSymfonyCommand {

    public function __construct() {
        parent::__construct(new SomeSymfonyCommand(), 'symfony command');
    }

}

Add it to your dependencies.json

#config/dependencies.json
{
    "dependencies": [
        {
            {
                "interfaces": "ride\\library\\cli\\command\\Command", 
                "class": "ride\\cli\\command\\SymfonyCommand",
                "id": "doctrine.command.symfony"
            }
        }
    ]
}

You can now find your new command listed as a Ride command:

php application/cli.php