__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* Part of the Joomla Framework Language Package
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/
namespace Joomla\Language;
/**
* Registry of file parsers
*
* @since 2.0
*/
class ParserRegistry
{
/**
* A map of the registered parsers
*
* @var ParserInterface[]
* @since 2.0
*/
private $parserMap = [];
/**
* Register a parser, overridding a previously registered parser for the given type
*
* @param ParserInterface $parser The parser to registery
*
* @return void
*
* @since 2.0
*/
public function add(ParserInterface $parser): void
{
$this->parserMap[$parser->getType()] = $parser;
}
/**
* Get the parser for a given type
*
* @param string $type The parser type to retrieve
*
* @return ParserInterface
*
* @since 2.0
*/
public function get(string $type): ParserInterface
{
if (!$this->has($type)) {
throw new \InvalidArgumentException(sprintf('There is not a parser registered for the `%s` type.', $type));
}
return $this->parserMap[$type];
}
/**
* Check if a parser is registered for the given type
*
* @param string $type The parser type to check (typically the file extension)
*
* @return boolean
*
* @since 2.0
*/
public function has(string $type): bool
{
return isset($this->parserMap[$type]);
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Localise | Folder | 0775 |
|
|
| Parser | Folder | 0775 |
|
|
| Service | Folder | 0775 |
|
|
| Stemmer | Folder | 0775 |
|
|
| DebugParserInterface.php | File | 711 B | 0664 |
|
| Language.php | File | 24.26 KB | 0664 |
|
| LanguageFactory.php | File | 5.69 KB | 0664 |
|
| LanguageHelper.php | File | 4.69 KB | 0664 |
|
| LocaliseInterface.php | File | 1.02 KB | 0664 |
|
| MessageCatalogue.php | File | 4.86 KB | 0664 |
|
| ParserInterface.php | File | 790 B | 0664 |
|
| ParserRegistry.php | File | 1.59 KB | 0664 |
|
| StemmerInterface.php | File | 640 B | 0664 |
|
| Text.php | File | 7.38 KB | 0664 |
|
| Transliterate.php | File | 5.76 KB | 0664 |
|