<?php
namespace Claromentis\Design\Controller;

$GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"] ?: array()) + array("_4b5e91a" . "0a6f7f82" . "2ac389ad" . "9a3fb0ee" . "2" => base64_decode("c3VjY2V" . "zcw=="), "_d270a1d6dee308e" . "bee20af7983c980f" . "3" => base64_decode("ZGVzaWduLn" . "RoZW1lX3Jl" . "cG9zaXRvcn" . "k="));
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["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_d270a1d6dee308ebee20" . "af7983c980f3"]];
        $theme_repo->SetThemePriority($theme_id, (int) $priority);
        $_1f24efd4735b7a11b391147435e7d35d = [$GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_4b5e91a0a6f7f822ac389ad9a3fb0" . "ee2"] => true];
        return new JsonPrettyResponse($_1f24efd4735b7a11b391147435e7d35d);
    }
}