public function normalize(ConfigurationInterface $configuration)
    {

        // normalize the configuration node without children
        $node = parent::normalize($configuration);

        // now we add recursive normalization
        foreach ($configuration->getChildren() as $child) {
            $node->{$configuration->getNodeName()}->children[] = $this->normalize($child);
        }

        // return the normalized node instance
        return $node;
    }
public function normalize(ConfigurationInterface $configuration)
    {

        // normalize the configuration node without children
        $node = parent::normalize($configuration);

        // now we add recursive normalization
        foreach ($configuration->getChildren() as $child) {
            $node->{$configuration->getNodeName()}->children[] = $this->normalize($child);
        }

        // return the normalized node instance
        return $node;
    }
public function normalize ( ConfigurationInterface $ configuration ) { // normalize the configuration node without children $ node = parent :: normalize ( $ configuration ) ; // now we add recursive normalization foreach ( $ configuration -> getChildren ( ) as $ child ) { $ node -> { $ configuration -> getNodeName ( ) } -> children [ ] = $ this -> normalize ( $ child ) ; } // return the normalized node instance return $ node ; }
Normalizes the passed configuration node recursive and returns
a \stdClass representation of it.

@param \AppserverIo\Configuration\Interfaces\ConfigurationInterface $configuration The configuration node to normalize recursive

@return \stdClass The normalized configuration node
Normalizes the passed configuration node recursive and returns a \ stdClass representation of it .