diff --git a/README.md b/README.md index 3410f36..a8b9ba0 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ This repo is the canonical hello-world template for Phlix plugin authors. It does almost nothing on purpose: it implements the -`Phlix\Plugins\Contract\LifecycleInterface` contract introduced in +`Phlix\Shared\Plugin\LifecycleInterface` contract introduced in Phlix Step A.4, returns a fixed greeting when asked about one well-known fixture path, and ships with a CI workflow plus PHPUnit tests so you can fork it as a starter and replace the lookup logic diff --git a/dev-stubs/LifecycleInterface.php b/dev-stubs/LifecycleInterface.php index ba2d617..19ff526 100644 --- a/dev-stubs/LifecycleInterface.php +++ b/dev-stubs/LifecycleInterface.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Phlix\Plugins\Contract; +namespace Phlix\Shared\Plugin; use Psr\Container\ContainerInterface; @@ -11,8 +11,8 @@ * * Loaded by `tests/bootstrap.php` when the plugin is tested outside a * Phlix server checkout. Keep this file byte-compatible with the - * canonical definition in `detain/phlix` at - * `src/Plugins/Contract/LifecycleInterface.php`. + * canonical definition in `detain/phlix-shared` at + * `src/Plugin/LifecycleInterface.php`. * * @internal Tests only — never autoloaded into production. */ diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 2ccb005..5597af2 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -6,7 +6,7 @@ * Test bootstrap for the plugin's own PHPUnit suite. * * The plugin's runtime dependency is the Phlix server, which provides - * `Phlix\Plugins\Contract\LifecycleInterface`. In an installed plugin + * `Phlix\Shared\Plugin\LifecycleInterface`. In an installed plugin * (`var/plugins/phlix-plugin-example/`) that interface is resolved by * the host application's autoloader. When the plugin is tested in * isolation — `composer install && vendor/bin/phpunit` from this @@ -21,6 +21,6 @@ require __DIR__ . '/../vendor/autoload.php'; -if (!interface_exists(\Phlix\Plugins\Contract\LifecycleInterface::class)) { +if (!interface_exists(\Phlix\Shared\Plugin\LifecycleInterface::class)) { require __DIR__ . '/../dev-stubs/LifecycleInterface.php'; }