public function handleParameterDefinition(ParameterDefinitionNode $definition) 
    {
        if ($this->namespace->hasParameter($definition->getName()) && $definition->isOverride() === false)
        {
            throw new ContainerInterpreterException("A parameter named \"{$definition->getName()}\" is already defined, you can prefix the definition with \"override\" to get around this error.");
        }

        if ($definition->getValue() instanceof ValueNode) {
            $this->namespace->setParameter($definition->getName(), $definition->getValue()->getRawValue());
        } 
        elseif ($definition->getValue() instanceof ArrayNode) {
            $this->namespace->setParameter($definition->getName(), $definition->getValue()->convertToNativeArray());
        }
        else {
            throw new ContainerInterpreterException("Invalid parameter value given for key \"{$definition->getName()}\".");
        }
    }
public function handleParameterDefinition(ParameterDefinitionNode $definition) 
    {
        if ($this->namespace->hasParameter($definition->getName()) && $definition->isOverride() === false)
        {
            throw new ContainerInterpreterException("A parameter named \"{$definition->getName()}\" is already defined, you can prefix the definition with \"override\" to get around this error.");
        }

        if ($definition->getValue() instanceof ValueNode) {
            $this->namespace->setParameter($definition->getName(), $definition->getValue()->getRawValue());
        } 
        elseif ($definition->getValue() instanceof ArrayNode) {
            $this->namespace->setParameter($definition->getName(), $definition->getValue()->convertToNativeArray());
        }
        else {
            throw new ContainerInterpreterException("Invalid parameter value given for key \"{$definition->getName()}\".");
        }
    }
public function handleParameterDefinition ( ParameterDefinitionNode $ definition ) { if ( $ this -> namespace -> hasParameter ( $ definition -> getName ( ) ) && $ definition -> isOverride ( ) === false ) { throw new ContainerInterpreterException ( "A parameter named \"{$definition->getName()}\" is already defined, you can prefix the definition with \"override\" to get around this error." ) ; } if ( $ definition -> getValue ( ) instanceof ValueNode ) { $ this -> namespace -> setParameter ( $ definition -> getName ( ) , $ definition -> getValue ( ) -> getRawValue ( ) ) ; } elseif ( $ definition -> getValue ( ) instanceof ArrayNode ) { $ this -> namespace -> setParameter ( $ definition -> getName ( ) , $ definition -> getValue ( ) -> convertToNativeArray ( ) ) ; } else { throw new ContainerInterpreterException ( "Invalid parameter value given for key \"{$definition->getName()}\"." ) ; } }
Handle a parameter definition

@param ParameterDefinitionNode 			$definition
@return void
Handle a parameter definition