Commit 83543c8a authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Injection de laminas\Mvc\Console dans UnicaenConsole & compat PHP8

parent 1c926251
Loading
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
# unicaen-console

[![Build Status](https://travis-ci.com/laminas/laminas-console.svg?branch=master)](https://travis-ci.com/laminas/laminas-console)
[![Coverage Status](https://coveralls.io/repos/github/laminas/laminas-console/badge.svg?branch=master)](https://coveralls.io/github/laminas/laminas-console?branch=master)
`Unicaen\Console` is a component to design and implement console applications in PHP.

`Laminas\Console` is a component to design and implement console applications in PHP.
- File issues at https://github.com/laminas/laminas-console/issues
- Documentation is at https://docs.laminas.dev/laminas-console/
+2 −2
Original line number Diff line number Diff line
@@ -392,8 +392,8 @@ class Posix extends AbstractAdapter
        if ($color !== null) {
            if (! isset(static::$ansiColorMap[$type][$color])) {
                throw new Exception\BadMethodCallException(sprintf(
                    'Unknown color "%s". Please use one of the Laminas\Console\ColorInterface constants '
                    . 'or use Laminas\Console\Color\Xterm256::calculate',
                    'Unknown color "%s". Please use one of the Unicaen\Console\ColorInterface constants '
                    . 'or use Unicaen\Console\Color\Xterm256::calculate',
                    $color
                ));
            }
+2 −2
Original line number Diff line number Diff line
@@ -30,10 +30,10 @@ abstract class Console
     * Create and return Adapter\AdapterInterface instance.
     *
     * @param  null|string  $forceAdapter Optional adapter class name. Can be absolute namespace or class name
     *                                    relative to Laminas\Console\Adapter\. If not provided, a best matching
     *                                    relative to Unicaen\Console\Adapter\. If not provided, a best matching
     *                                    adapter will be automatically selected.
     * @param  null|string  $forceCharset optional charset name can be absolute namespace or class name relative to
     *                                    Laminas\Console\Charset\. If not provided, charset will be detected
     *                                    Unicaen\Console\Charset\. If not provided, charset will be detected
     *                                    automatically.
     * @throws Exception\InvalidArgumentException
     * @throws Exception\RuntimeException
+4 −4
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ namespace Unicaen\Console;
 * - Automatic generation of a helpful usage message.
 * - Signal end of options with '--'; subsequent arguments are treated
 *   as non-option arguments, even if they begin with '-'.
 * - Raise exception Laminas\Console\Exception\* in several cases
 * - Raise exception Unicaen\Console\Exception\* in several cases
 *   when invalid flags or parameters are given.  Usage message is
 *   returned in the exception object.
 *
@@ -210,7 +210,7 @@ class Getopt
        if (! isset($_SERVER['argv'])) {
            $errorDescription = (ini_get('register_argc_argv') == false)
                ? "argv is not available, because ini option 'register_argc_argv' is set Off"
                : '$_SERVER["argv"] is not set, but Laminas\Console\Getopt cannot work without this information.';
                : '$_SERVER["argv"] is not set, but Unicaen\Console\Getopt cannot work without this information.';
            throw new Exception\InvalidArgumentException($errorDescription);
        }

@@ -336,7 +336,7 @@ class Getopt
    /**
     * Define multiple configuration options from an associative array.
     * These are not program options, but properties to configure
     * the behavior of Laminas\Console\Getopt.
     * the behavior of Unicaen\Console\Getopt.
     *
     * @param  array $getoptConfig
     * @return self
@@ -354,7 +354,7 @@ class Getopt
    /**
     * Define one configuration option as a key/value pair.
     * These are not program options, but properties to configure
     * the behavior of Laminas\Console\Getopt.
     * the behavior of Unicaen\Console\Getopt.
     *
     * @param  string $configKey
     * @param  string $configValue
+2 −2
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@ abstract class AbstractPrompt implements PromptInterface
     *
     * This is a convenience method for creating statically creating prompts, i.e.:
     *
     *      $name = Laminas\Console\Prompt\Line::prompt("Enter your name: ");
     *      $name = Unicaen\Console\Prompt\Line::prompt("Enter your name: ");
     *
     * @return mixed
     * @throws Exception\BadMethodCallException
@@ -73,7 +73,7 @@ abstract class AbstractPrompt implements PromptInterface
    {
        if (get_called_class() === __CLASS__) {
            throw new Exception\BadMethodCallException(
                'Cannot call prompt() on AbstractPrompt class. Use one of the Laminas\Console\Prompt\ subclasses.'
                'Cannot call prompt() on AbstractPrompt class. Use one of the Unicaen\Console\Prompt\ subclasses.'
            );
        }

Loading