2022-01-23 21:09:46 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Psalm\Tests\Config\Plugin;
|
|
|
|
|
|
|
|
use Psalm\Plugin\PluginEntryPointInterface;
|
|
|
|
use Psalm\Plugin\RegistrationInterface;
|
2022-01-28 10:51:01 +01:00
|
|
|
use Psalm\Tests\Config\Plugin\Hook\CustomArrayMapFunctionStorageProvider;
|
2022-01-23 21:09:46 +01:00
|
|
|
use SimpleXMLElement;
|
|
|
|
|
|
|
|
/** @psalm-suppress UnusedClass */
|
|
|
|
class StoragePlugin implements PluginEntryPointInterface
|
|
|
|
{
|
|
|
|
public function __invoke(RegistrationInterface $registration, ?SimpleXMLElement $config = null): void
|
|
|
|
{
|
2022-01-28 10:51:01 +01:00
|
|
|
require_once __DIR__ . '/Hook/CustomArrayMapFunctionStorageProvider.php';
|
2022-01-23 21:09:46 +01:00
|
|
|
|
2022-01-28 10:51:01 +01:00
|
|
|
$registration->registerHooksFromClass(CustomArrayMapFunctionStorageProvider::class);
|
2022-01-23 21:09:46 +01:00
|
|
|
}
|
|
|
|
}
|