private function getRestNode()
    {
        $node = $this->createRootNode('rest');
        return $node
            ->addDefaultsIfNotSet()
            ->children()
                ->scalarNode('root_endpoint')->isRequired()->cannotBeEmpty()->defaultValue('modlr/api')
                    ->validate()
                        ->always(function($v) {
                            $v = $this->formatRestEndpoint($v);
                            return $v;
                        })
                    ->end()
                ->end()
                ->booleanNode('debug')->defaultValue(false)->end()
            ->end()

        ;
    }
private function getRestNode()
    {
        $node = $this->createRootNode('rest');
        return $node
            ->addDefaultsIfNotSet()
            ->children()
                ->scalarNode('root_endpoint')->isRequired()->cannotBeEmpty()->defaultValue('modlr/api')
                    ->validate()
                        ->always(function($v) {
                            $v = $this->formatRestEndpoint($v);
                            return $v;
                        })
                    ->end()
                ->end()
                ->booleanNode('debug')->defaultValue(false)->end()
            ->end()

        ;
    }
private function getRestNode ( ) { $ node = $ this -> createRootNode ( 'rest' ) ; return $ node -> addDefaultsIfNotSet ( ) -> children ( ) -> scalarNode ( 'root_endpoint' ) -> isRequired ( ) -> cannotBeEmpty ( ) -> defaultValue ( 'modlr/api' ) -> validate ( ) -> always ( function ( $ v ) { $ v = $ this -> formatRestEndpoint ( $ v ) ; return $ v ; } ) -> end ( ) -> end ( ) -> booleanNode ( 'debug' ) -> defaultValue ( false ) -> end ( ) -> end ( ) ; }
Gets the rest configuration node.

@return  \Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition
Gets the rest configuration node .