/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
src/Illuminate/Session/NullSessionHandler.php
68 строк
986 B
Antonio Pauletich
Remove return type will change annotations (#40471)
18 янв 2022, 17:36
Не верифицирован
18 янв 2022, 17:36
6d29d4e
Код
Авторство
О чём код?
<?php namespace Illuminate\Session; use SessionHandlerInterface; class NullSessionHandler implements SessionHandlerInterface { /** * {@inheritdoc} * * @return bool */ public function open($savePath, $sessionName): bool { return true; } /** * {@inheritdoc} * * @return bool */ public function close(): bool { return true; } /** * {@inheritdoc} * * @return string */ public function read($sessionId): string { return ''; } /** * {@inheritdoc} * * @return bool */ public function write($sessionId, $data): bool { return true; } /** * {@inheritdoc} * * @return bool */ public function destroy($sessionId): bool { return true; } /** * {@inheritdoc} * * @return int */ public function gc($lifetime): int { return 0; } }