for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Lochmueller\LanguageDetection\Check;
use Lochmueller\LanguageDetection\Event\CheckLanguageDetectionEvent;
class RequestMethodCheck
{
public function __invoke(CheckLanguageDetectionEvent $event): void
if ($event->getRequest()->getMethod() !== 'GET') {
$event->disableLanguageDetection();
}