Component\Intl\ResourceBundle\Util

Classes ArrayAccessibleResourceBundle Work-around for a bug in PHP's \ResourceBundle implementation. RecursiveArrayAccess RingBuffer Implements a ring buffer.

PhpAdapter deprecated::searchInDirectory()

Iterator searchInDirectory(string $dir) Parameters string $dir Return Value Iterator Result iterator

TextBundleWriter

class TextBundleWriter implements BundleWriterInterface Writes .txt resource bundles. The resulting files can be converted to binary .res files using the {@link \Symfony\Component\Intl\ResourceBundle\Transformer\BundleCompiler}. Methods write(string $path, string $locale, mixed $data) Writes data to a resource bundle. Details write(string $path, string $locale, mixed $data) Writes data to a resource bundle. Parameters string $path The path t

Section::lap()

StopwatchEvent lap(string $name) Stops then restarts an event. Parameters string $name The event name Return Value StopwatchEvent The event Exceptions LogicException When the event has not been started

PhpBundleWriter

class PhpBundleWriter implements BundleWriterInterface Writes .php resource bundles. Methods write(string $path, string $locale, mixed $data) Writes data to a resource bundle. Details write(string $path, string $locale, mixed $data) Writes data to a resource bundle. Parameters string $path The path to the resource bundle. string $locale The locale to (over-)write. mixed $data The data to write.

TypeGuess

class TypeGuess extends Guess Contains a guessed class name and a list of options for creating an instance of that class. Constants VERY_HIGH_CONFIDENCE Marks an instance with a value that is extremely likely to be correct. HIGH_CONFIDENCE Marks an instance with a value that is very likely to be correct. MEDIUM_CONFIDENCE Marks an instance with a value that is likely to be correct. LOW_CONFIDENCE Marks an instance with a value that may be correct. Methods static Guess|null

ResourceCheckerConfigCache::isFresh()

bool isFresh() Checks if the cache is still fresh. This implementation will make a decision solely based on the ResourceCheckers passed in the constructor. The first ResourceChecker that supports a given resource is considered authoritative. Resources with no matching ResourceChecker will silently be ignored and considered fresh. Return Value bool Whether the cache is still fresh.

CachingFactoryDecorator::createView()

ChoiceListView createView(ChoiceListInterface $list, null|array|callable $preferredChoices = null, null|callable $label = null, null|callable $index = null, null|callable $groupBy = null, null|array|callable $attr = null) Creates a view for the given choice list. Callables may be passed for all optional arguments. The callables receive the choice as first and the array key as the second argument. The callable for the label and the name should return the generated label/choice na

ControllerResolverInterface::getController()

callable|false getController(Request $request) Returns the Controller instance associated with a Request. As several resolvers can exist for a single application, a resolver must return false when it is not able to determine the controller. The resolver must only throw an exception when it should be able to load controller but cannot because of some errors made by the developer. Parameters Request $request A Request instance Return Value callable|false A PHP callable representi

BasicPermissionMap

class BasicPermissionMap implements PermissionMapInterface This is basic permission map complements the masks which have been defined on the standard implementation of the MaskBuilder. Constants PERMISSION_VIEW PERMISSION_EDIT PERMISSION_CREATE PERMISSION_DELETE PERMISSION_UNDELETE PERMISSION_OPERATOR PERMISSION_MASTER PERMISSION_OWNER Methods __construct() array getMasks(string $permission, object $object) Returns an array of bitmasks. bool c