protected function getFile($file)
    {
        $mapping = [
            '%environment%' => $this->runtime->getEnvironment(),
        ];

        if ($this->runtime->getHostName() !== null) {
            $mapping['%host%'] = $this->runtime->getHostName();
        }

        if ($this->runtime->getReleaseId() !== null) {
            $mapping['%release%'] = $this->runtime->getReleaseId();
        }

        $options = $this->getOptions();
        return str_replace(
            array_keys($mapping),
            array_values($mapping),
            $options[$file]
        );
    }
protected function getFile($file)
    {
        $mapping = [
            '%environment%' => $this->runtime->getEnvironment(),
        ];

        if ($this->runtime->getHostName() !== null) {
            $mapping['%host%'] = $this->runtime->getHostName();
        }

        if ($this->runtime->getReleaseId() !== null) {
            $mapping['%release%'] = $this->runtime->getReleaseId();
        }

        $options = $this->getOptions();
        return str_replace(
            array_keys($mapping),
            array_values($mapping),
            $options[$file]
        );
    }
protected function getFile ( $ file ) { $ mapping = [ '%environment%' => $ this -> runtime -> getEnvironment ( ) , ] ; if ( $ this -> runtime -> getHostName ( ) !== null ) { $ mapping [ '%host%' ] = $ this -> runtime -> getHostName ( ) ; } if ( $ this -> runtime -> getReleaseId ( ) !== null ) { $ mapping [ '%release%' ] = $ this -> runtime -> getReleaseId ( ) ; } $ options = $ this -> getOptions ( ) ; return str_replace ( array_keys ( $ mapping ) , array_values ( $ mapping ) , $ options [ $ file ] ) ; }
Returns a file with the placeholders replaced

@param string $file
@return string
@throws ErrorException
Returns a file with the placeholders replaced