protected function getLocalSettings($app = null, $timestamp = null)
    {
        $this->readProperties();
        $defaults = [
            'app' => $app,
            'time' => is_null($timestamp) ? $this->time : $timestamp,
            'project_root' => $this->getConfig()->get('digipolis.root.project'),
            'web_root' => $this->getConfig()->get('digipolis.root.web'),
        ];

        // Set up destination config.
        $replacements = array(
            '[project_root]' => $this->getConfig()->get('digipolis.root.project'),
            '[web_root]' => $this->getConfig()->get('digipolis.root.web'),
            '[app]' => $app,
            '[time]' => is_null($timestamp) ? $this->time : $timestamp,
        );
        return $this->tokenReplace($this->getConfig()->get('local'), $replacements) + $defaults;
    }
protected function getLocalSettings($app = null, $timestamp = null)
    {
        $this->readProperties();
        $defaults = [
            'app' => $app,
            'time' => is_null($timestamp) ? $this->time : $timestamp,
            'project_root' => $this->getConfig()->get('digipolis.root.project'),
            'web_root' => $this->getConfig()->get('digipolis.root.web'),
        ];

        // Set up destination config.
        $replacements = array(
            '[project_root]' => $this->getConfig()->get('digipolis.root.project'),
            '[web_root]' => $this->getConfig()->get('digipolis.root.web'),
            '[app]' => $app,
            '[time]' => is_null($timestamp) ? $this->time : $timestamp,
        );
        return $this->tokenReplace($this->getConfig()->get('local'), $replacements) + $defaults;
    }
protected function getLocalSettings ( $ app = null , $ timestamp = null ) { $ this -> readProperties ( ) ; $ defaults = [ 'app' => $ app , 'time' => is_null ( $ timestamp ) ? $ this -> time : $ timestamp , 'project_root' => $ this -> getConfig ( ) -> get ( 'digipolis.root.project' ) , 'web_root' => $ this -> getConfig ( ) -> get ( 'digipolis.root.web' ) , ] ; // Set up destination config. $ replacements = array ( '[project_root]' => $ this -> getConfig ( ) -> get ( 'digipolis.root.project' ) , '[web_root]' => $ this -> getConfig ( ) -> get ( 'digipolis.root.web' ) , '[app]' => $ app , '[time]' => is_null ( $ timestamp ) ? $ this -> time : $ timestamp , ) ; return $ this -> tokenReplace ( $ this -> getConfig ( ) -> get ( 'local' ) , $ replacements ) + $ defaults ; }
Get the settings from the 'local' config key, with the tokens replaced.

@param string $app
The name of the app these settings apply to.
@param string|null $timestamp
The timestamp to use. Defaults to the request time.

@return array
The settings for the local environment and app.
Get the settings from the local config key with the tokens replaced .