Generator/DeployGenerator.php
public function write()
    {
        foreach ($this->parameters as $prop => $value) {
            $placeHolders[] = sprintf('<%s>', $prop);
            $replacements[] = $value;
        }

        $config = str_replace($placeHolders, $replacements, self::$configTemplate);
        $config = sprintf('%s%s%s', self::$defaultConfigTemplate, PHP_EOL, $config);

        if (true === $this->parameters['composer']) {
            $config = sprintf('%s%s%s', $config, PHP_EOL, self::$downloadComposerTaskTemplate);
        }

        if (true === $this->parameters['schemadb']) {
            $config = sprintf('%s%s%s', $config, PHP_EOL, self::$updateSchemaTaskTemplate);
        }

        fwrite($this->file, $this->addHeaders($config));
    }
public function write()
    {
        foreach ($this->parameters as $prop => $value) {
            $placeHolders[] = sprintf('<%s>', $prop);
            $replacements[] = $value;
        }

        $config = str_replace($placeHolders, $replacements, self::$configTemplate);
        $config = sprintf('%s%s%s', self::$defaultConfigTemplate, PHP_EOL, $config);

        if (true === $this->parameters['composer']) {
            $config = sprintf('%s%s%s', $config, PHP_EOL, self::$downloadComposerTaskTemplate);
        }

        if (true === $this->parameters['schemadb']) {
            $config = sprintf('%s%s%s', $config, PHP_EOL, self::$updateSchemaTaskTemplate);
        }

        fwrite($this->file, $this->addHeaders($config));
    }
public function write ( ) { foreach ( $ this -> parameters as $ prop => $ value ) { $ placeHolders [ ] = sprintf ( '<%s>' , $ prop ) ; $ replacements [ ] = $ value ; } $ config = str_replace ( $ placeHolders , $ replacements , self :: $ configTemplate ) ; $ config = sprintf ( '%s%s%s' , self :: $ defaultConfigTemplate , PHP_EOL , $ config ) ; if ( true === $ this -> parameters [ 'composer' ] ) { $ config = sprintf ( '%s%s%s' , $ config , PHP_EOL , self :: $ downloadComposerTaskTemplate ) ; } if ( true === $ this -> parameters [ 'schemadb' ] ) { $ config = sprintf ( '%s%s%s' , $ config , PHP_EOL , self :: $ updateSchemaTaskTemplate ) ; } fwrite ( $ this -> file , $ this -> addHeaders ( $ config ) ) ; }
Writes deployment file.
Writes deployment file .