despark/tart-cli

此包已被废弃,不再维护。没有建议的替代包。

为 Jam Tart 的 Symfony/Console CLI

0.1.3 2014-03-24 08:53 UTC

This package is not auto-updated.

Last update: 2020-07-03 19:37:21 UTC


README

Jam Tart CLI

安装

使用 Composer 安装

composer require --dev despark/tart-cli

设置

将其添加到您的 Symfony 控制台应用程序中

// Use needed classes and commands to load into the Console Application
use Symfony\Component\Console\Application;
use Despark\Command\Tart\GenerateCommand;
use Despark\Command\Tart\DeleteCommand;

// Create a new Console Application instance
$application = new Application();

// Attach commands to the Console Application instance
$application->add(new GenerateCommand);
$application->add(new DeleteCommand);

// Run the Console Application instance
$application->run();