protected function registerViewComposers()
    {
        view()->composer(
            'gzero-cms::contents._disqus',
            function ($view) {
                $data = [];
                $user = auth()->user();
                if ($user && !$user->isGuest()) {
                    $data = [
                        "id"       => $user["id"],
                        "username" => $user->getPresenter()->displayName(),
                        "email"    => $user["email"],
                        //"avatar"    => $user["avatar"],
                    ];
                }

                $message   = base64_encode(json_encode($data));
                $timestamp = time();
                $hmac      = $this->dsqHmacSha1($message . ' ' . $timestamp, config('gzero-cms.disqus.api_secret'));
                $view->with('remoteAuthS3', "$message $hmac $timestamp");
            }
        );
    }