platform/api/symfony/Component/Intl/Data/Bundle/Reader/BundleEntryReader.yaml

85 lines
2.4 KiB
YAML
Raw Normal View History

2024-09-02 17:44:11 +00:00
name: BundleEntryReader
class_comment: '# * Default implementation of {@link BundleEntryReaderInterface}.
# *
# * @author Bernhard Schussek <bschussek@gmail.com>
# *
# * @see BundleEntryReaderInterface
# *
# * @internal'
dependencies:
- name: RecursiveArrayAccess
type: class
source: Symfony\Component\Intl\Data\Util\RecursiveArrayAccess
- name: MissingResourceException
type: class
source: Symfony\Component\Intl\Exception\MissingResourceException
- name: OutOfBoundsException
type: class
source: Symfony\Component\Intl\Exception\OutOfBoundsException
- name: ResourceBundleNotFoundException
type: class
source: Symfony\Component\Intl\Exception\ResourceBundleNotFoundException
- name: Locale
type: class
source: Symfony\Component\Intl\Locale
properties: []
methods:
- name: __construct
visibility: public
parameters:
- name: reader
comment: "# * Default implementation of {@link BundleEntryReaderInterface}.\n# *\n\
# * @author Bernhard Schussek <bschussek@gmail.com>\n# *\n# * @see BundleEntryReaderInterface\n\
# *\n# * @internal\n# */\n# class BundleEntryReader implements BundleEntryReaderInterface\n\
# {\n# /**\n# * A mapping of locale aliases to locales.\n# */\n# private array\
\ $localeAliases = [];\n# \n# /**\n# * Creates an entry reader based on the given\
\ resource bundle reader."
- name: setLocaleAliases
visibility: public
parameters:
- name: localeAliases
comment: '# * Stores a mapping of locale aliases to locales.
# *
# * This mapping is used when reading entries and merging them with their
# * fallback locales. If an entry is read for a locale alias (e.g. "mo")
# * that points to a locale with a fallback locale ("ro_MD"), the reader
# * can continue at the correct fallback locale ("ro").
# *
# * @param array $localeAliases A mapping of locale aliases to locales'
- name: read
visibility: public
parameters:
- name: path
- name: locale
comment: null
- name: readEntry
visibility: public
parameters:
- name: path
- name: locale
- name: indices
- name: fallback
default: 'true'
comment: null
traits:
- Symfony\Component\Intl\Data\Util\RecursiveArrayAccess
- Symfony\Component\Intl\Exception\MissingResourceException
- Symfony\Component\Intl\Exception\OutOfBoundsException
- Symfony\Component\Intl\Exception\ResourceBundleNotFoundException
- Symfony\Component\Intl\Locale
interfaces:
- BundleEntryReaderInterface