AuthShield = $AuthShield; $this->container=(null!==$container) ? $container : $AuthShield->getAppShield()->getContainer(); } public function auth(\UMA\JsonRpc\Request $request){ return 'admin' === $this->container->get('webfan.app.fsm.user')->getCurrentState()->getName(); } /** * {@inheritdoc} */ public function __invoke(\UMA\JsonRpc\Request $request): \UMA\JsonRpc\Response { $params = $request->params(); try{ $success = \Webfan\App\Shield::getInstance( $this->AuthShield->getAppShield(), \frdl\i::c())->updateSelf(); return new \UMA\JsonRpc\Success($request->id(), $success); }catch(\Exception $e){ return new \UMA\JsonRpc\Error($request->id(), 'Could update'); } } public function getSpec(): ?\stdClass { return \json_decode(<<<'JSON' { "$schema": "https://json-schema.org/draft-07/schema#", "type": ["null", "array", "object"], "properties": { }, "required" : [], "additionalProperties": true } JSON ); } } __halt_compiler();----SIGNATURE:----Hj4xUBAt4zif7tBb03HlLdN9CUzH4+DwKKGPMmmMMn3D2+TWaKHIEKK6CVb8im6TOZjQqoahBcLQeQF9xyLky4N9PmUe1YQXIKTN1dRaIGJSRMv0PML7KpLOf4/uK76vPNYRYd+Le+xOH21CV2Dlqi60LuEBzm9hoWuzg6uhnhEKyrMwcbknP3e3Gz7nFdfV01boBbA1zaRbE1DTRkPLqFCegv6i2+7tVb3kaWm1WayByVsbYZtwVggnTRc5Kc+hcnTewRFm+kFbTtJKup2G2PzGRJdeQSbnySr4WIiPaRsiuORP43+ZMo19Trci84wprjRacqV7Ixfk/Jivy/C1gkk+O37cGkdKCe5gicwLYOVqqgUmqHvfZlWCGrqAG2R9Hp9Z256a6BAbiV3/4MFFCgDqU+GXFD0CCLFXZeE2lLBbuNPExs0JWyin2YEFSupuBQ3HLEnfEUx138kh1+4UKp4izGyqrde+ref/avTBPhYpcuo0D7RBZTU1zCm/7xMsSGGLaXFTZxhQT2WKcoDUWtdRw61TuVQ9oxIPS2T+u99+0cBiA4HT9y4ycq5RLXPu3nTN8JcemuqZ7cvhPw9gqdUHk1KNBwOljvIHU+esXJclBEsvVI5wJqbwjPNPXctoEZP9rbByhURGUSrmN1SFldV3D/byx+9pNIS2/T0lB74=----ATTACHMENT:----MjYxNjcyOTE0NDkzNDA3MSA5NDI1MjM4MDgwNzIzOTc2IDMwNDI2MjUxNDU2MzAwNjI=