File: FakeSchemeRequest.php

package info (click to toggle)
icingaweb2-module-graphite 1.2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,000 kB
  • sloc: php: 3,546; javascript: 88; sh: 54; makefile: 15
file content (18 lines) | stat: -rw-r--r-- 363 bytes parent folder | download | duplicates (3)
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';
    }
}