private function addParameter($path, $bundleName, $name)
    {
        $formPath = $this->configuration['namespace'] . '\\' . $this->model . 'Type';
        $ref = '<parameters>';
        $replaceBefore = true;

        $declaration = <<<EOF
        <parameter key="$bundleName.form.type.$name.class">$formPath</parameter>
EOF;

        if ($this->refExist($path, $declaration)) {
            return;
        }

        if (!$this->refExist($path, $ref)) {
            $ref = '    <services>';
            $replaceBefore = false;
            $declaration = <<<EOF
    <parameters>
$declaration
    </parameters>

EOF;
        }

        $this->dumpFile($path, "\n" . $declaration, $ref, $replaceBefore);
    }
private function addParameter($path, $bundleName, $name)
    {
        $formPath = $this->configuration['namespace'] . '\\' . $this->model . 'Type';
        $ref = '<parameters>';
        $replaceBefore = true;

        $declaration = <<<EOF
        <parameter key="$bundleName.form.type.$name.class">$formPath</parameter>
EOF;

        if ($this->refExist($path, $declaration)) {
            return;
        }

        if (!$this->refExist($path, $ref)) {
            $ref = '    <services>';
            $replaceBefore = false;
            $declaration = <<<EOF
    <parameters>
$declaration
    </parameters>

EOF;
        }

        $this->dumpFile($path, "\n" . $declaration, $ref, $replaceBefore);
    }
private function addParameter ( $ path , $ bundleName , $ name ) { $ formPath = $ this -> configuration [ 'namespace' ] . '\\' . $ this -> model . 'Type' ; $ ref = '<parameters>' ; $ replaceBefore = true ; $ declaration =  <<<EOF
        <parameter key="$bundleName.form.type.$name.class">$formPath</parameter>
EOF ; if ( $ this -> refExist ( $ path , $ declaration ) ) { return ; } if ( ! $ this -> refExist ( $ path , $ ref ) ) { $ ref = '    <services>' ; $ replaceBefore = false ; $ declaration =  <<<EOF
    <parameters>
$declaration
    </parameters>

EOF ; } $ this -> dumpFile ( $ path , "\n" . $ declaration , $ ref , $ replaceBefore ) ; }
Add parameter node

@param string $path
@param string $bundleName
@param string $name
Add parameter node