<?php
namespace Claromentis\Design\Controller;

$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"] = (@$GLOBALS["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"] ?: array()) + array("_d270a1d6" . "dee308ebe" . "e20af7983" . "c980f3" => base64_decode("ZGVzaWduLnRoZW1lX3JlcG9" . "zaXRvcnk="), "_4b5e91a0a6" . "f7f822ac389" . "ad9a3fb0ee2" => base64_decode("c3VjY2Vzcw" . "=="));
use Claromentis\Core\Application;
use Claromentis\Core\Http\gpc;
use Claromentis\Core\Http\JsonPrettyResponse;
use Claromentis\Design\Repository\ThemeRepository;
use Psr\Http\Message\ServerRequestInterface;
class ThemeRestV1
{
    public function SetThemePriority(Application $app, ServerRequestInterface $request, $theme_id, $priority)
    {
        
        
        $theme_repo = $app[$GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"]["_d270a1d" . "6dee308e" . "bee20af7" . "983c980f" . "3"]];
        $theme_repo->SetThemePriority($theme_id, (int) $priority);
        $_1f24efd4735b7a11b391147435e7d35d = [$GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["_4b5e91a0a6f7f822ac389" . "ad9a3fb0ee2"] => true];
        return new JsonPrettyResponse($_1f24efd4735b7a11b391147435e7d35d);
    }
}