lthn.io/app/Core/Database/Seeders/Attributes/SeederAfter.php
Claude 41a90cbff8
feat: lthn.io API serving live chain data
Fixed: basePath self→static binding, namespace detection, event wiring,
SQLite cache, file cache driver. All Mod Boot classes converted to
$listens pattern for lifecycle event discovery.

Working endpoints:
- /v1/explorer/info — live chain height, difficulty, aliases
- /v1/explorer/stats — formatted chain statistics
- /v1/names/directory — alias directory grouped by type
- /v1/names/available/{name} — name availability check
- /v1/names/lookup/{name} — name details

Co-Authored-By: Charon <charon@lethean.io>
2026-04-03 17:17:42 +01:00

60 lines
1.3 KiB
PHP

<?php
/*
* Core PHP Framework
*
* Licensed under the European Union Public Licence (EUPL) v1.2.
* See LICENSE file for details.
*/
declare(strict_types=1);
namespace Core\Database\Seeders\Attributes;
use Attribute;
/**
* Declares that this seeder must run after the specified seeders.
*
* Use this attribute to define explicit dependencies between seeders.
* The seeder will not run until all specified dependencies have completed.
*
* ## Example
*
* ```php
* use Core\Tenant\Database\Seeders\FeatureSeeder;
*
* #[SeederAfter(FeatureSeeder::class)]
* class PackageSeeder extends Seeder
* {
* public function run(): void { ... }
* }
*
* // Multiple dependencies
* #[SeederAfter(FeatureSeeder::class, PackageSeeder::class)]
* class WorkspaceSeeder extends Seeder
* {
* public function run(): void { ... }
* }
* ```
*/
#[Attribute(Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)]
class SeederAfter
{
/**
* The seeder classes that must run before this one.
*
* @var array<class-string>
*/
public readonly array $seeders;
/**
* Create a new dependency attribute.
*
* @param class-string ...$seeders Seeder classes that must run first
*/
public function __construct(string ...$seeders)
{
$this->seeders = $seeders;
}
}