site.php 335 B

1234567891011121314151617
  1. <?php
  2. namespace middleware;
  3. use Closure;
  4. use Qii\Base\Middleware\Request as Middleware;
  5. use \Qii\Base\Request;
  6. class site implements Middleware
  7. {
  8. public function __construct(){
  9. }
  10. public function handle(Request $request, Closure $next) {
  11. //echo "This is global middleware";
  12. return $next($request);
  13. }
  14. }