mirror of
https://github.com/danog/psalm.git
synced 2024-12-11 00:39:38 +01:00
17 lines
467 B
PHP
17 lines
467 B
PHP
<?php
|
|
|
|
namespace Psalm\Example\Plugin\ComposerBased;
|
|
|
|
use Psalm\Plugin\PluginEntryPointInterface;
|
|
use Psalm\Plugin\RegistrationInterface;
|
|
use SimpleXMLElement;
|
|
|
|
final class PluginEntryPoint implements PluginEntryPointInterface
|
|
{
|
|
public function __invoke(RegistrationInterface $registration, ?SimpleXMLElement $config = null): void
|
|
{
|
|
require_once __DIR__ . '/EchoChecker.php';
|
|
$registration->registerHooksFromClass(EchoChecker::class);
|
|
}
|
|
}
|