Definition::addMethodCall()

Definition addMethodCall(string $method, array $arguments = array()) Adds a method to call after service initialization. Parameters string $method The method name to call array $arguments An array of arguments to pass to the method call Return Value Definition The current instance Exceptions InvalidArgumentException on empty $method param

Application::all()

Command[] all(string $namespace = null) Gets the commands (registered in the given namespace if provided). The array keys are the full names and the values the command instances. Parameters string $namespace A namespace name Return Value Command[] An array of Command instances

DateTimeToRfc3339Transformer::reverseTransform()

mixed reverseTransform(string $rfc3339) Transforms a formatted string following RFC 3339 into a normalized date. Parameters string $rfc3339 Formatted string Return Value mixed The value in the original representation Exceptions TransformationFailedException If the given value is not a string, if the value could not be transformed

AbstractNormalizer::setCallbacks()

AbstractNormalizer setCallbacks(array $callbacks) Set normalization callbacks. Parameters array $callbacks help normalize the result Return Value AbstractNormalizer Exceptions InvalidArgumentException if a non-callable callback is set

ProcessPipes::unblock()

unblock() Sets non-blocking mode on pipes.

UserInterface

interface UserInterface Represents the interface that all user classes must implement. This interface is useful because the authentication layer can deal with the object through its lifecycle, using the object to get the encoded password (for checking against a submitted password), assigning roles and so on. Regardless of how your user are loaded or where they come from (a database, configuration, web service, etc), you will have a class that implements this interface. Objects that implement

ProcessPipes::write()

write(Boolean $blocking, string|null $stdin) Writes stdin data. Parameters Boolean $blocking Whether to use blocking calls or not. string|null $stdin The data to write.

Question::setNormalizer()

Question setNormalizer(callable $normalizer) Sets a normalizer for the response. The normalizer can be a callable (a string), a closure or a class implementing __invoke. Parameters callable $normalizer Return Value Question The current instance

DialogHelper deprecated::ask()

string ask(OutputInterface $output, string|array $question, string $default = null, array $autocomplete = null) Asks a question to the user. Parameters OutputInterface $output An Output instance string|array $question The question to ask string $default The default answer if none is given by the user array $autocomplete List of values to autocomplete Return Value string The user answer Exceptions RuntimeException If there is no data to read in the input stream

XmlFileLoader

class XmlFileLoader extends FileLoader XmlFileLoader loads XML routing files. Constants NAMESPACE_URI SCHEME_PATH Methods LoaderResolverInterface getResolver() Gets the loader resolver. from Loader setResolver(LoaderResolverInterface $resolver) Sets the loader resolver. from Loader mixed import(mixed $resource, string|null $type = null, bool $ignoreErrors = false, string|null $sourceResource = null) Imports a resource. from FileLoader LoaderInterface resolve(mixed $