diff --git a/installer/Module/CycleBridge/Package.php b/installer/Module/CycleBridge/Package.php
index d5fcca3..dc16332 100644
--- a/installer/Module/CycleBridge/Package.php
+++ b/installer/Module/CycleBridge/Package.php
@@ -7,6 +7,8 @@
use Installer\Application\ComposerPackages;
use Installer\Internal\Generator\GeneratorInterface;
use Installer\Internal\Package as BasePackage;
+use Installer\Internal\Readme\Block\ListBlock;
+use Installer\Internal\Readme\Section;
use Installer\Module\CycleBridge\Generator\Bootloaders;
use Installer\Module\CycleBridge\Generator\Config;
use Installer\Module\CycleBridge\Generator\Env;
@@ -30,13 +32,21 @@ public function __construct(
new Env(),
new Skeleton(),
],
- array $instructions = [
- 'Database configuration file: app/config/database.php',
- 'Migrations configuration file: app/config/migration.php',
- 'Cycle ORM configuration file: app/config/cycle.php',
- 'Documentation: https://spiral.dev/docs/basics-orm',
- ],
) {
- parent::__construct(ComposerPackages::CycleBridge, $resources, $generators, $instructions);
+ parent::__construct(ComposerPackages::CycleBridge, $resources, $generators);
+ }
+
+ public function getReadme(): array
+ {
+ return [
+ Section::Configuration->value => [
+ new ListBlock([
+ 'Database configuration file: `app/config/database.php`',
+ 'Migrations configuration file: `app/config/migration.php`',
+ 'Cycle ORM configuration file: `app/config/cycle.php`',
+ 'Documentation: `https://spiral.dev/docs/basics-orm`'
+ ], $this->getTitle())
+ ],
+ ];
}
}
diff --git a/installer/Module/DataGridBridge/Package.php b/installer/Module/DataGridBridge/Package.php
index 1121f97..0eb771f 100644
--- a/installer/Module/DataGridBridge/Package.php
+++ b/installer/Module/DataGridBridge/Package.php
@@ -7,6 +7,8 @@
use Installer\Application\ComposerPackages;
use Installer\Internal\Generator\GeneratorInterface;
use Installer\Internal\Package as BasePackage;
+use Installer\Internal\Readme\Block\ListBlock;
+use Installer\Internal\Readme\Section;
use Installer\Module\DataGridBridge\Generator\Bootloaders;
use Installer\Module\DataGridBridge\Generator\Interceptors;
@@ -21,10 +23,18 @@ public function __construct(
new Bootloaders(),
new Interceptors(),
],
- array $instructions = [
- 'Documentation: https://spiral.dev/docs/component-data-grid',
- ],
) {
- parent::__construct(ComposerPackages::DataGridBridge, $resources, $generators, $instructions);
+ parent::__construct(ComposerPackages::DataGridBridge, $resources, $generators);
+ }
+
+ public function getReadme(): array
+ {
+ return [
+ Section::Configuration->value => [
+ new ListBlock([
+ 'Documentation: `https://spiral.dev/docs/component-data-grid`',
+ ], $this->getTitle())
+ ],
+ ];
}
}