icingaweb2-module-graphite/library/Graphite/Web/FakeSchemeRequest.php
2017-12-20 15:32:28 +01:00

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';
}
}