<?php
namespace Claromentis\Core\Application;

$GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"] = (@$GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"] ?: array()) + array("_ab2030555cfbe63c67a304c5" . "8283a0a6" => base64_decode("aHR0cF9idWlsZF" . "9xdWVyeQ=="), "_4afcbf900d146eeb40e326a4637" . "a8e02" => base64_decode("P" . "w" . "=" . "="));
use Claromentis\Core\Http\RedirectResponse;
use Psr\Http\Message\ServerRequestInterface;
class RedirectController
{
    public function Redirect(ServerRequestInterface $request, string $path, bool $pass_query)
    {
        $_b12236751ba8e0343418757359cf17ec = $request->getQueryParams();
        if ($pass_query && !empty($_b12236751ba8e0343418757359cf17ec)) {
            $_c17bd011316daf31a358b3c7ecc35e51 = $GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"]["_ab2030555cfb" . "e63c67a304c58" . "283a0a6"]($_b12236751ba8e0343418757359cf17ec);
            $path = $path . $GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["_4afcbf90" . "0d146eeb4" . "0e326a463" . "7a8e02"] . $_c17bd011316daf31a358b3c7ecc35e51;
        }
        return new RedirectResponse($path, 301);
    }
}