<?php
namespace Claromentis\Core\Application;

$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"] = (@$GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"] ?: array()) + array("_4afcbf900d146eeb40e326a4637a" . "8e02" => base64_decode("Pw=" . "="), "_ab2030555cfbe63c67a304c58283" . "a0a6" => base64_decode("aHR0cF9idW" . "lsZF9xdWVy" . "eQ=="));
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["__65da1b1ec2d6653e8a0ab784" . "8e536215"]["_ab2030555cfbe63" . "c67a304c58283a0a" . "6"]($_b12236751ba8e0343418757359cf17ec);
            $path = $path . $GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_4afcbf900d146eeb40e326a4637a8e" . "02"] . $_c17bd011316daf31a358b3c7ecc35e51;
        }
        return new RedirectResponse($path, 301);
    }
}