GuardAuthenticatorInterface::onAuthenticationSuccess()

Response|null onAuthenticationSuccess(Request $request, TokenInterface $token, string $providerKey) Called when authentication executed and was successful! This should return the Response sent back to the user, like a RedirectResponse to the last page they visited. If you return null, the current request will continue, and the user will be authenticated. This makes sense, for example, with an API. Parameters Request $request TokenInterface $token string $providerKey The prov

InputStream::onEmpty()

onEmpty(callable $onEmpty = null) Sets a callback that is called when the write buffer becomes empty. Parameters callable $onEmpty

KernelEvents

class KernelEvents Contains all events thrown in the HttpKernel component. Constants REQUEST The REQUEST event occurs at the very beginning of request dispatching. This event allows you to create a response for a request before any other code in the framework is executed. EXCEPTION The EXCEPTION event occurs when an uncaught exception appears. This event allows you to create a response for a thrown exception or to modify the thrown exception. VIEW The VIEW event occurs when the return

Response::prepare()

Response prepare(Request $request) Prepares the Response before it is sent to the client. This method tweaks the Response to ensure that it is compliant with RFC 2616. Most of the changes are based on the Request that is "associated" with this Response. Parameters Request $request A Request instance Return Value Response The current response

RingBuffer

class RingBuffer implements ArrayAccess Implements a ring buffer. A ring buffer is an array-like structure with a fixed size. If the buffer is full, the next written element overwrites the first bucket in the buffer, then the second and so on. Methods __construct($size) offsetExists($key) {@inheritdoc} offsetGet($key) {@inheritdoc} offsetSet($key, $value) {@inheritdoc} offsetUnset($key) {@inheritdoc} Details __construct($size)

ImmutableEventDispatcher

class ImmutableEventDispatcher implements EventDispatcherInterface A read-only proxy for an event dispatcher. Methods __construct(EventDispatcherInterface $dispatcher) Creates an unmodifiable proxy for an event dispatcher. Event dispatch(string $eventName, Event $event = null) Dispatches an event to all registered listeners. addListener(string $eventName, callable $listener, int $priority) Adds an event listener that listens on the specified events. addSubscriber(EventSubs

ArrayAdapter::getItem()

getItem($key) {@inheritdoc} Parameters $key

AclAlreadyExistsException

class AclAlreadyExistsException extends Exception This exception is thrown when someone tries to create an ACL for an object identity that already has one.

FileDumper

class FileDumper implements DumperInterface FileDumper is an implementation of DumperInterface that dump a message catalogue to file(s). Performs backup of already existing files. Options: - path (mandatory): the directory where the files should be saved Methods setRelativePathTemplate(string $relativePathTemplate) Sets the template for the relative paths to files. setBackup(bool $backup) Sets backup flag. dump(MessageCatalogue $messages, array $options = array()) Dumps the mes

ValidationVisitor deprecated::visit()

visit(MetadataInterface $metadata, mixed $value, string $group, string $propertyPath) Validates a value against the constraints defined in some metadata. This method implements the Visitor design pattern. See also {@link ValidationVisitorInterface}. Parameters MetadataInterface $metadata The metadata holding the constraints. mixed $value The value to validate. string $group The validation group to validate. string $propertyPath The current property path in the validation graph.