Skip to content

sbooker/console

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Symfony Console wrapper

Catch all exceptions and write message, trace (in verbose mode) to console output.

Returns code depends of executing result. Zero on success. Exception code or one otherwise.

Version Software License Downloads

Installation

composer require sbooker/console

Usage

use Sbooker\Console\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class ConcreteCommand extends Command
{
    // Define command. See [Symfony Console Component](https://symfony.com/doc/current/components/console.html) 

    protected function doExecute(InputInterface $input, OutputInterface $output) : void {
        // .... do something successful ....
    }
}

License

See LICENSE file.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages