src/Kunstmaan/DashboardBundle/Helper/Google/Analytics/ConfigHelper.php
public function init($configId = false)
    {
        // if token is already saved in the database
        if ($this->getToken($configId) && '' !== $this->getToken($configId)) {
            $this
                ->serviceHelper
                ->getClientHelper()
                ->getClient()
                ->setAccessToken($this->getToken($configId));
        }

        if ($configId) {
            $this->getAccountId($configId);
            $this->getPropertyId($configId);
            $this->getProfileId($configId);
        }
    }
public function init($configId = false)
    {
        // if token is already saved in the database
        if ($this->getToken($configId) && '' !== $this->getToken($configId)) {
            $this
                ->serviceHelper
                ->getClientHelper()
                ->getClient()
                ->setAccessToken($this->getToken($configId));
        }

        if ($configId) {
            $this->getAccountId($configId);
            $this->getPropertyId($configId);
            $this->getProfileId($configId);
        }
    }
public function init ( $ configId = false ) { // if token is already saved in the database if ( $ this -> getToken ( $ configId ) && '' !== $ this -> getToken ( $ configId ) ) { $ this -> serviceHelper -> getClientHelper ( ) -> getClient ( ) -> setAccessToken ( $ this -> getToken ( $ configId ) ) ; } if ( $ configId ) { $ this -> getAccountId ( $ configId ) ; $ this -> getPropertyId ( $ configId ) ; $ this -> getProfileId ( $ configId ) ; } }
Tries to initialise the Client object

@param int $configId
Tries to initialise the Client object