1 | <?php namespace Arcanesoft\Seo\Http\Middleware; |
||
13 | class SeoSpamBlockerMiddleware |
||
14 | { |
||
15 | /* ------------------------------------------------------------------------------------------------ |
||
16 | | Properties |
||
17 | | ------------------------------------------------------------------------------------------------ |
||
18 | */ |
||
19 | /** @var \Arcanedev\SpamBlocker\Contracts\SpamBlocker */ |
||
20 | protected $blocker; |
||
21 | |||
22 | /* ------------------------------------------------------------------------------------------------ |
||
23 | | Constructor |
||
24 | | ------------------------------------------------------------------------------------------------ |
||
25 | */ |
||
26 | 8 | public function __construct(SpamBlocker $blocker) |
|
30 | |||
31 | /* ------------------------------------------------------------------------------------------------ |
||
32 | | Main Functions |
||
33 | | ------------------------------------------------------------------------------------------------ |
||
34 | */ |
||
35 | /** |
||
36 | * Handle an incoming request. |
||
37 | * |
||
38 | * @param \Illuminate\Http\Request $request |
||
39 | * @param \Closure $next |
||
40 | * |
||
41 | * @return mixed |
||
42 | */ |
||
43 | 8 | public function handle(Request $request, Closure $next) |
|
51 | } |
||
52 |