Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
10 changes: 3 additions & 7 deletions src/HelloMetadataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Phlix\PluginExample;

use Phlix\Plugins\Contract\LifecycleInterface;
use Phlix\Shared\Plugin\LifecycleInterface;
use Psr\Container\ContainerInterface;

/**
Expand All @@ -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`.
Expand All @@ -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
Expand Down
Loading