mirror of
https://github.com/Icinga/icingaweb2-module-graphite.git
synced 2026-02-03 20:40:06 -05:00
18 lines
363 B
PHP
18 lines
363 B
PHP
<?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';
|
|
}
|
|
}
|