1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-15 19:07:00 +01:00
psalm/tests/Config/Plugin/SqlStringProviderPlugin.php

21 lines
640 B
PHP
Raw Normal View History

<?php
namespace Psalm\Test\Config\Plugin;
2021-12-03 20:11:20 +01:00
use Psalm\Plugin\PluginEntryPointInterface;
2021-12-04 21:55:53 +01:00
use Psalm\Plugin\RegistrationInterface;
use Psalm\Test\Config\Plugin\Hook\SqlStringProvider;
use SimpleXMLElement;
/** @psalm-suppress UnusedClass */
2021-12-03 20:11:20 +01:00
class SqlStringProviderPlugin implements PluginEntryPointInterface
{
2021-12-04 21:55:53 +01:00
public function __invoke(RegistrationInterface $registration, ?SimpleXMLElement $config = null): void
{
require_once __DIR__ . '/Hook/SqlStringProvider.php';
require_once __DIR__ . '/Hook/StringProvider/TSqlSelectString.php';
2021-12-04 21:55:53 +01:00
$registration->registerHooksFromClass(SqlStringProvider::class);
}
}