(Grav GitSync) Automatic Commit from GitSync

This commit is contained in:
GitSync
2026-06-14 00:27:27 +00:00
parent a2920f812d
commit 3c1bfda80f
2933 changed files with 491625 additions and 0 deletions
@@ -0,0 +1,25 @@
<?php
declare(strict_types=1);
namespace PHPHtmlParser\Discovery;
use PHPHtmlParser\Contracts\Dom\CleanerInterface;
use PHPHtmlParser\Dom\Cleaner;
class CleanerDiscovery
{
/**
* @var Cleaner|null
*/
private static $parser = null;
public static function find(): CleanerInterface
{
if (self::$parser == null) {
self::$parser = new Cleaner();
}
return self::$parser;
}
}
@@ -0,0 +1,25 @@
<?php
declare(strict_types=1);
namespace PHPHtmlParser\Discovery;
use PHPHtmlParser\Contracts\Dom\ParserInterface;
use PHPHtmlParser\Dom\Parser;
class DomParserDiscovery
{
/**
* @var ParserInterface|null
*/
private static $parser = null;
public static function find(): ParserInterface
{
if (self::$parser == null) {
self::$parser = new Parser();
}
return self::$parser;
}
}
@@ -0,0 +1,25 @@
<?php
declare(strict_types=1);
namespace PHPHtmlParser\Discovery;
use PHPHtmlParser\Contracts\Selector\SeekerInterface;
use PHPHtmlParser\Selector\Seeker;
class SeekerDiscovery
{
/**
* @var SeekerInterface|null
*/
private static $seeker = null;
public static function find(): SeekerInterface
{
if (self::$seeker == null) {
self::$seeker = new Seeker();
}
return self::$seeker;
}
}
@@ -0,0 +1,25 @@
<?php
declare(strict_types=1);
namespace PHPHtmlParser\Discovery;
use PHPHtmlParser\Contracts\Selector\ParserInterface;
use PHPHtmlParser\Selector\Parser;
class SelectorParserDiscovery
{
/**
* @var ParserInterface|null
*/
private static $parser = null;
public static function find(): ParserInterface
{
if (self::$parser == null) {
self::$parser = new Parser();
}
return self::$parser;
}
}