diff --git a/composer.json b/composer.json index d197067..4a3f39e 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,8 @@ "homepage": "https://github.com/detain/phlix-plugin-example", "require": { "php": ">=8.1", - "psr/container": "^1.1 || ^2.0" + "psr/container": "^1.1 || ^2.0", + "detain/phlix-shared": "^0.2" }, "require-dev": { "phpunit/phpunit": "^10.0" diff --git a/src/HelloMetadataProvider.php b/src/HelloMetadataProvider.php index d1d2b6e..8dd8df5 100644 --- a/src/HelloMetadataProvider.php +++ b/src/HelloMetadataProvider.php @@ -4,7 +4,7 @@ namespace Phlix\PluginExample; -use Phlix\Plugins\Contract\LifecycleInterface; +use Phlix\Shared\Plugin\LifecycleInterface; use Psr\Container\ContainerInterface; /** @@ -13,7 +13,7 @@ * Demonstrates the smallest functional plugin that satisfies the Phlix * plugin contract introduced in Step A.4 of `PHLIX_EXPANSION_PLAN.md`. * The plugin implements {@see LifecycleInterface} so the - * `Phlix\Plugins\PluginLoader` can instantiate, enable, and disable it, + * `Phlix\Shared\Plugin\Loader` can instantiate, enable, and disable it, * and exposes a {@see self::lookup()} method that returns a fixed * greeting for a well-known fixture path. The greeting itself is * configurable through the plugin's `greeting` setting in `plugin.json`. @@ -34,11 +34,7 @@ * * ## Provenance * - * The `LifecycleInterface` lives in `Phlix\Plugins\Contract` today; - * Step B.1 of the expansion plan moves it to - * `Phlix\Shared\Plugin\LifecycleInterface`. When that ships this class - * will be republished against the new namespace; until then, plugin - * authors targeting master pin to the current FQCN. + * The `LifecycleInterface` lives in `Phlix\Shared\Plugin\LifecycleInterface`. * * @link https://github.com/detain/phlix/blob/master/docs/plugins/developer-guide.md Phlix plugin developer guide * @package Phlix\PluginExample