1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-16 11:26:55 +01:00
psalm/examples/plugins/composer-based/echo-checker/PluginEntryPoint.php
2021-12-04 21:55:53 +01:00

16 lines
460 B
PHP

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