protected function loadGlobalViewVariables(Config $config)
    {
        $app = app();
        $share = [];

        foreach ($config->get('globalviewvars') as $name => $abstract) {
            $share[$name] = $app->make($abstract);
        }

        $this->share($share);

        if (method_exists($this, 'loadExtraGlobalViewVariables')) {
            $this->loadExtraGlobalViewVariables();
        }
    }