2020-08-10 16:49:53 +02:00
|
|
|
<?php
|
|
|
|
namespace Psalm\Test\Config\Plugin;
|
|
|
|
|
|
|
|
use Psalm\Plugin;
|
2021-12-03 20:11:20 +01:00
|
|
|
use Psalm\Plugin\PluginEntryPointInterface;
|
2020-08-10 16:49:53 +02:00
|
|
|
use SimpleXMLElement;
|
|
|
|
|
|
|
|
/** @psalm-suppress UnusedClass */
|
2021-12-03 20:11:20 +01:00
|
|
|
class FilePlugin implements PluginEntryPointInterface
|
2020-08-10 16:49:53 +02:00
|
|
|
{
|
2020-10-12 21:02:52 +02:00
|
|
|
public function __invoke(Plugin\RegistrationInterface $registration, ?SimpleXMLElement $config = null): void
|
2020-08-10 16:49:53 +02:00
|
|
|
{
|
|
|
|
require_once __DIR__ . '/Hook/FileProvider.php';
|
|
|
|
|
|
|
|
$registration->registerHooksFromClass(Hook\FileProvider::class);
|
|
|
|
}
|
|
|
|
}
|