MoneyToLocalizedStringTransformer::transform()

mixed transform(mixed $value) Transforms a normalized format into a localized money string. Parameters mixed $value The value in the original representation Return Value mixed The value in the transformed representation Exceptions TransformationFailedException If the given value is not numeric or if the value can not be transformed.

ProgressBar::getProgress()

int getProgress() Gets the current step position. Return Value int The progress bar step

NativeSessionStorage::setSaveHandler()

setSaveHandler(AbstractProxy|NativeSessionHandler|SessionHandlerInterface|null $saveHandler = null) Registers session save handler as a PHP session handler. To use internal PHP session save handlers, override this method using iniset with session.savehandler and session.save_path e.g. ini_set('session.save_handler', 'files'); ini_set('session.save_path', '/tmp'); or pass in a NativeSessionHandler instance which configures session.save_handler in the constructor, for a template see N

Process::run()

int run(callable|null $callback = null) Runs the process. The callback receives the type of output (out or err) and some bytes from the output in real-time. It allows to have feedback from the independent process during execution. The STDOUT and STDERR are also available after the process is finished via the getOutput() and getErrorOutput() methods. Parameters callable|null $callback A PHP callback to run whenever there is some output available on STDOUT or STDERR Return Value

PropertyAccessDecorator::createListFromLoader()

ChoiceListInterface createListFromLoader(ChoiceLoaderInterface $loader, null|callable $value = null) Creates a choice list that is loaded with the given loader. Optionally, a callable can be passed for generating the choice values. The callable receives the choice as first and the array key as the second argument. Parameters ChoiceLoaderInterface $loader The choice loader null|callable $value The callable generating the choice values Return Value ChoiceListInterface The choice

Cookie::getValue()

string getValue() Gets the value of the cookie. Return Value string The cookie value

Firewall::getSubscribedEvents()

static array getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $priority)) a

Expression::prepend()

ValueInterface prepend(string $expr) Parameters string $expr Return Value ValueInterface

InputStream::write()

write(resource|scalar|Traversable|null $input) Appends an input to the write buffer. Parameters resource|scalar|Traversable|null $input The input to append as stream resource, scalar or \Traversable

ControllerResolver::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