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 { set_time_limit(900); $params = $request->params(); $config = $this->AuthShield->getAppShield()->getConfig()->export(); // $config = $this->AuthShield->getAppShield()->config; unset($config['hashed_password']); try{ return new \UMA\JsonRpc\Success($request->id(), $config); }catch(\Exception $e){ return new \UMA\JsonRpc\Error($request->id(), 'Could get config'); } } 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:----JL19BbSq4YmdlQ82xdDxZe/n+MuKXSFsszV5Kfy1Pqv1iC8zmmEIPsAhVL1YoJEyATAm7o/+HdmJWdGnEeviQeh1VDE/Jt55Js3zpDix5T7VXwf4ddsCPOr2B6eYvfIqmBJB9aBRidkeyOGYwbiU0t7+zqOmAZUpb+gvd7EJxI1WewdLcsXzqPfVQzXWq2SwCKRIcLXc6lhHDMQbG0IIngrIJViEvfyFkojbEdS2vsxJZgTf8e9l3Nhx01WcPnJ4p9mdYCV0Hjt3Fng7EjN34gNYwZhw7YgYugUhehMAWKNZa5ZIgJwzM64MYI/hUvtgUvVCQOpAj71vzN2ZPhVG4evDiDcsAhvcv/blFtrnh6sbSPrqeyWcF62coZryyt8en6PcU0vuACiXRKEtE64pHbVWBRH6mHe3tZa02g2I6g5biphqGdL9tFX8IFBW8peXjwo4c4E7P5lmin/ehY84GOVcTGRe7h3RR7eTxolOIgxcEIS0Yf+c7fUGGW0QUYZwHOCg15hid9WrB0ZFoXuI21Dcqc+hvd8OMAD6WO8ZebETYSDHyw9BnrTzOb7708IuAhUDeUzh0FhfDrjeUyAxuILmAHyPYeu4rwaU0jta2vhUig9TSG5DADOcFfihzHtoK3PYimdQPChqVaQwiE+IfvLo3hTCmLJhpYCGEvZXVn4=----ATTACHMENT:----MTY5NTQ4OTM3NTM5MzI2OSA5NDk4NzYwMjEwOTY4MjExIDY4NjYyMjcxMDg4NzYzOTc=