src/Component/Http/ParameterBag.php
public function add(string $key, $value, bool $override = false)
    {
        if (!$override && $this->exists($key)) {
            return;
        }

        $this->parameters[$key] = $value;
    }
public function add(string $key, $value, bool $override = false)
    {
        if (!$override && $this->exists($key)) {
            return;
        }

        $this->parameters[$key] = $value;
    }
public function add ( string $ key , $ value , bool $ override = false ) { if ( ! $ override && $ this -> exists ( $ key ) ) { return ; } $ this -> parameters [ $ key ] = $ value ; }
Add a parameter to the bag

@param string $key
@param mixed  $value
Add a parameter to the bag