Session::getMetadataBag()

MetadataBag getMetadataBag() Gets session meta. Return Value MetadataBag

Session::getIterator()

ArrayIterator getIterator() Returns an iterator for attributes. Return Value ArrayIterator An \ArrayIterator instance

Session::getId()

string getId() Returns the session ID. Return Value string The session ID

Session::getFlashBag()

FlashBagInterface getFlashBag() Gets the flashbag interface. Return Value FlashBagInterface

Session::getBag()

SessionBagInterface getBag(string $name) Gets a bag instance by name. Parameters string $name Return Value SessionBagInterface

Session::count()

int count() Returns the number of attributes. Return Value int The number of attributes

Session::clear()

clear() Clears all attributes.

Session::all()

array all() Returns attributes. Return Value array Attributes

Session

class Session implements SessionInterface, IteratorAggregate, Countable Session. Methods __construct(SessionStorageInterface $storage = null, AttributeBagInterface $attributes = null, FlashBagInterface $flashes = null) Constructor. bool start() Starts the session storage. bool has(string $name) Checks if an attribute is defined. mixed get(string $name, mixed $default = null) Returns an attribute. set(string $name, mixed $value) Sets an attribute. array all() Retu

ServiceUnavailableHttpException

class ServiceUnavailableHttpException extends HttpException ServiceUnavailableHttpException. Methods __construct(int|string $retryAfter = null, $message = null, Exception $previous = null, $code) Constructor. int getStatusCode() Returns the status code. from HttpException array getHeaders() Returns response headers. from HttpException Details __construct(int|string $retryAfter = null, $message = null, Exception $previous = null, $code)