jelix/console-helpers

helpers for Symfony Console

v1.0.3 2023-11-15 14:41 UTC

This package is auto-updated.

Last update: 2024-12-15 16:59:26 UTC


README

Library providing helpers for Symfony Console

installation

You can install it from Composer. In your project:

composer require "jelix/console-helper"

usage

In your command class:

    protected function execute(InputInterface $input, OutputInterface $output)
    {

        $questionHelper = $this->getHelper('question');
        $interactive = new InteractiveCliHelper($questionHelper, $input, $output);

        $interactive->...
    }