NullValidator deprecated

class NullValidator extends IsNullValidator deprecated since version 2.7, to be removed in 3.0. Use IsNullValidator instead. Constants PRETTY_DATE Whether to format {@link \DateTime} objects as RFC-3339 dates ("Y-m-d H:i:s"). OBJECT_TO_STRING Whether to cast objects with a "__toString()" method to strings. Methods initialize(ExecutionContextInterface $context) Initializes the constraint validator. from ConstraintValidator validate(mixed $value, Constraint $constraint) Check

NullSessionHandler::write()

write($sessionId, $data) {@inheritdoc} Parameters $sessionId $data

NullSessionHandler::read()

read($sessionId) {@inheritdoc} Parameters $sessionId

NullSessionHandler::open()

open($savePath, $sessionName) {@inheritdoc} Parameters $savePath $sessionName

NullSessionHandler::gc()

gc($maxlifetime) {@inheritdoc} Parameters $maxlifetime

NullSessionHandler::destroy()

destroy($sessionId) {@inheritdoc} Parameters $sessionId

NullSessionHandler::close()

close() {@inheritdoc}

NullSessionHandler

class NullSessionHandler implements SessionHandlerInterface NullSessionHandler. Can be used in unit testing or in a situations where persisted sessions are not desired. Methods open($savePath, $sessionName) {@inheritdoc} close() {@inheritdoc} read($sessionId) {@inheritdoc} write($sessionId, $data) {@inheritdoc} destroy($sessionId) {@inheritdoc} gc($maxlifetime) {@inheritdoc} Details open($savePath, $sessionName) {@inhe

NullOutput::writeln()

writeln(string|array $messages, int $options = self::OUTPUT_NORMAL) Writes a message to the output and adds a newline at the end. Parameters string|array $messages The message as an array of lines of a single string int $options A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUTNORMAL | self::VERBOSITYNORMAL

NullOutput::write()

write(string|array $messages, bool $newline = false, int $options = self::OUTPUT_NORMAL) Writes a message to the output. Parameters string|array $messages The message as an array of lines or a single string bool $newline Whether to add a newline int $options A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUTNORMAL | self::VERBOSITYNORMAL