summaryrefslogtreecommitdiffstats
path: root/library/Graphite/Web/FakeSchemeRequest.php
blob: dc415cd24c40dd7e0585d42af8491698c0990a31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

namespace Icinga\Module\Graphite\Web;

use Icinga\Web\Request;

/**
 * Rationale:
 *
 * {@link Url::fromPath()} doesn't preserve URLs which seem to be internal as they are.
 */
class FakeSchemeRequest extends Request
{
    public function getScheme()
    {
        return 'a random url scheme which always differs from the current request\'s one';
    }
}