Skip to content

Commit dc4f611

Browse files
authored
Merge pull request #302 from armanist/293-Replace-abandoned-laminas-text-package-with-figlet-package-for-Figlet-rendering
Replace abandoned `laminas/laminas-text` with `povils/figlet` for Figlet rendering
2 parents 00fe8e4 + 6832e81 commit dc4f611

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@
3737
"php-curl-class/php-curl-class": "^9.0",
3838
"psr/log": "^1.1",
3939
"rakibtg/sleekdb": "^2.13",
40-
"laminas/laminas-text": "^2.9",
4140
"swagger-api/swagger-ui": "^4.14",
4241
"zircote/swagger-php": "~4.4",
4342
"psr/simple-cache": "^1.0",
4443
"vaibhavpandeyvpz/phemail": "^1.1",
4544
"doctrine/annotations": "^2.0",
4645
"voku/html-min": "^4.5",
4746
"league/commonmark": "^1.6",
48-
"ezyang/htmlpurifier": "^4.18"
47+
"ezyang/htmlpurifier": "^4.18",
48+
"povils/figlet": "^0.1.0"
4949
},
5050
"require-dev": {
5151
"phpunit/phpunit": "^9.0",

src/Console/Commands/VersionCommand.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* @author Arman Ag. <arman.ag@softberg.org>
1010
* @copyright Copyright (c) 2018 Softberg LLC (https://softberg.org)
1111
* @link http://quantum.softberg.org/
12-
* @since 2.9.7
12+
* @since 2.9.8
1313
*/
1414

1515
namespace Quantum\Console\Commands;
@@ -18,8 +18,8 @@
1818
use Quantum\App\Exceptions\BaseException;
1919
use Quantum\Di\Exceptions\DiException;
2020
use Quantum\Environment\Environment;
21-
use Laminas\Text\Figlet\Figlet;
2221
use Quantum\Console\QtCommand;
22+
use Povils\Figlet\Figlet;
2323
use Quantum\Loader\Setup;
2424
use ReflectionException;
2525

@@ -61,9 +61,12 @@ public function exec()
6161

6262
$figlet = new Figlet();
6363

64-
$figlet->setFont(assets_dir() . DS . 'shared' . DS . 'fonts' . DS . 'figlet' . DS . 'slant.flf')->setSmushMode(Figlet::SM_SMUSH);
64+
$renderedFiglet = $figlet
65+
->setFontDir(assets_dir() . DS . 'shared' . DS . 'fonts' . DS . 'figlet' . DS)
66+
->setFont('slant')
67+
->render('QUANTUM PHP ' . env('APP_VERSION'));
6568

66-
$this->info($figlet->render('QUANTUM PHP ' . env('APP_VERSION')));
69+
$this->info($renderedFiglet);
6770

6871
$this->info('- - - Q U A N T U M P H P F R A M E W O R K ' . env('APP_VERSION') . ' I N S T A L L E D - - -');
6972
}

0 commit comments

Comments
 (0)