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