concrete/authentication/external_concrete5/controller.php
private function setData()
    {
        $data = $this->config->get('auth.external_concrete5', '');
        $authUrl = $this->urlResolver->resolve(['/ccm/system/authentication/oauth2/external_concrete5/attempt_auth']);
        $attachUrl = $this->urlResolver->resolve(['/ccm/system/authentication/oauth2/external_concrete5/attempt_attach']);
        $baseUrl = $this->urlResolver->resolve(['/']);
        $path = $baseUrl->getPath();
        $path->remove('index.php');
        $name = trim((string) array_get($data, 'name', t('External concrete5')));

        $this->set('data', $data);
        $this->set('authUrl', $authUrl);
        $this->set('attachUrl', $attachUrl);
        $this->set('baseUrl', $baseUrl);
        $this->set('assetBase', $baseUrl->setPath($path));
        $this->set('name', $name);
        $this->set('user', $this->app->make(User::class));
    }
private function setData()
    {
        $data = $this->config->get('auth.external_concrete5', '');
        $authUrl = $this->urlResolver->resolve(['/ccm/system/authentication/oauth2/external_concrete5/attempt_auth']);
        $attachUrl = $this->urlResolver->resolve(['/ccm/system/authentication/oauth2/external_concrete5/attempt_attach']);
        $baseUrl = $this->urlResolver->resolve(['/']);
        $path = $baseUrl->getPath();
        $path->remove('index.php');
        $name = trim((string) array_get($data, 'name', t('External concrete5')));

        $this->set('data', $data);
        $this->set('authUrl', $authUrl);
        $this->set('attachUrl', $attachUrl);
        $this->set('baseUrl', $baseUrl);
        $this->set('assetBase', $baseUrl->setPath($path));
        $this->set('name', $name);
        $this->set('user', $this->app->make(User::class));
    }
private function setData ( ) { $ data = $ this -> config -> get ( 'auth.external_concrete5' , '' ) ; $ authUrl = $ this -> urlResolver -> resolve ( [ '/ccm/system/authentication/oauth2/external_concrete5/attempt_auth' ] ) ; $ attachUrl = $ this -> urlResolver -> resolve ( [ '/ccm/system/authentication/oauth2/external_concrete5/attempt_attach' ] ) ; $ baseUrl = $ this -> urlResolver -> resolve ( [ '/' ] ) ; $ path = $ baseUrl -> getPath ( ) ; $ path -> remove ( 'index.php' ) ; $ name = trim ( ( string ) array_get ( $ data , 'name' , t ( 'External concrete5' ) ) ) ; $ this -> set ( 'data' , $ data ) ; $ this -> set ( 'authUrl' , $ authUrl ) ; $ this -> set ( 'attachUrl' , $ attachUrl ) ; $ this -> set ( 'baseUrl' , $ baseUrl ) ; $ this -> set ( 'assetBase' , $ baseUrl -> setPath ( $ path ) ) ; $ this -> set ( 'name' , $ name ) ; $ this -> set ( 'user' , $ this -> app -> make ( User :: class ) ) ; }
Method for setting general data for all views
Method for setting general data for all views