blessing-skin-server/app/Http/Middleware/SaveOptionRepository.php
2016-12-30 19:35:07 +08:00

34 lines
683 B
PHP

<?php
namespace App\Http\Middleware;
use Closure;
class SaveOptionRepository
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
return $next($request);
}
/**
* Do the really operations of saving modified options.
*
* @param \Illuminate\Http\Request $request
* @param \Symfony\Component\HttpFoundation\Response $response
* @return void
*/
public function terminate($request, $response)
{
// deprecated
// app('options')->save();
}
}