1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-02 09:37:59 +01:00
psalm/examples/plugins/composer-based/echo-checker/PluginEntryPoint.php
Bruce Weirdan a338e76ef6 Plugin interface segregation (#1076)
* Split Plugin into PluginApi\Hook\* interfaces

* dropped Psalm\Plugin

* updated docs

* s/PluginApi/Plugin/g
2018-11-12 11:20:59 -05:00

16 lines
426 B
PHP

<?php
namespace Psalm\Example\Plugin\ComposerBased;
use Psalm\Plugin;
use SimpleXMLElement;
class PluginEntryPoint implements Plugin\PluginEntryPointInterface
{
/** @return void */
public function __invoke(Plugin\RegistrationInterface $registration, ?SimpleXMLElement $config = null)
{
require_once __DIR__ . '/EchoChecker.php';
$registration->registerHooksFromClass(EchoChecker::class);
}
}