Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 6
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
cron
0.00% covered (danger)
0.00%
0 / 6
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 handle
0.00% covered (danger)
0.00%
0 / 6
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2/**
3 *
4 * This file is part of the phpBB Forum Software package.
5 *
6 * @copyright (c) phpBB Limited <https://www.phpbb.com>
7 * @license GNU General Public License, version 2 (GPL-2.0)
8 *
9 * For full copyright and license information, please see
10 * the docs/CREDITS.txt file.
11 *
12 */
13
14namespace phpbb\cron\controller;
15
16use Symfony\Component\HttpFoundation\Response;
17
18/**
19 * Controller for running cron jobs
20 */
21class cron
22{
23    /**
24     * Handles CRON requests
25     *
26     * @param string $cron_type
27     *
28     * @return Response
29     */
30    public function handle($cron_type)
31    {
32        $response = new Response();
33        $response->headers->set('Cache-Control', 'no-cache');
34        $response->headers->set('Content-type', 'image/gif');
35        $response->headers->set('Content-length', '43');
36        $response->setContent(base64_decode('R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=='));
37
38        return $response;
39    }
40}