mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
a338e76ef6
* Split Plugin into PluginApi\Hook\* interfaces * dropped Psalm\Plugin * updated docs * s/PluginApi/Plugin/g
16 lines
426 B
PHP
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);
|
|
}
|
|
}
|