src/Console/Command.php
public function extension($extension)
    {
        if (is_string($extension)) {
            $extension = new $extension;
        } elseif (!$extension instanceof AbstractExtension) {
            throw new \LogicException('Not an extension object or an extension class name.');
        }

        $this->addExtension($extension);
    }
public function extension($extension)
    {
        if (is_string($extension)) {
            $extension = new $extension;
        } elseif (!$extension instanceof AbstractExtension) {
            throw new \LogicException('Not an extension object or an extension class name.');
        }

        $this->addExtension($extension);
    }
public function extension ( $ extension ) { if ( is_string ( $ extension ) ) { $ extension = new $ extension ; } elseif ( ! $ extension instanceof AbstractExtension ) { throw new \ LogicException ( 'Not an extension object or an extension class name.' ) ; } $ this -> addExtension ( $ extension ) ; }
method `extension` is an alias of addExtension

@param AbstractExtension|string $extension

@throws ExtensionException
method extension is an alias of addExtension