getYamlDecoder example

restore_error_handler();

        // Check if there was a error while loading file         if ($this->_loadFileErrorStr !== null) {
            throw new Zend_Config_Exception($this->_loadFileErrorStr);
        }

        // Override static value for ignore_constants if provided in $options         self::setIgnoreConstants($ignoreConstants);

        // Parse YAML         $config = call_user_func($this->getYamlDecoder()$yaml);

        // Reset original static state of ignore_constants         self::setIgnoreConstants($staticIgnoreConstants);

        if (null === $config) {
            // decode failed             throw new Zend_Config_Exception("Error parsing YAML data");
        }

        if (null === $section) {
            $dataArray = array();
            
Home | Imprint | This part of the site doesn't use cookies.