getReflectMethod($class, $method); $parent = $reflect->getDeclaringClass()->getAttributes(JsonRpc::class); if (empty($parent)) { return parent::execute($class, $method); } /** @var JsonRpc $attribute */ $attribute = $parent[0]->newInstance(); Router::addService($attribute->service, function () use ($class, $method) { Router::jsonp($this->method, [di($class), $method]); }, $attribute->version); return parent::execute($class, $method); // TODO: Change the autogenerated stub } }