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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions dev-stubs/LifecycleInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Phlix\Plugins\Contract;
namespace Phlix\Shared\Plugin;

use Psr\Container\ContainerInterface;

Expand All @@ -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.
*/
Expand Down
4 changes: 2 additions & 2 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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';
}
Loading