Development

Changeset 6456

You must first sign up to be able to contribute.

Changeset 6456

Show
Ignore:
Timestamp:
12/11/07 16:40:57 (10 months ago)
Author:
fabien
Message:

removed required categories in sfYamlConfigHandler (not used)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/config/sfYamlConfigHandler.class.php

    r6368 r6456  
    1111/** 
    1212 * sfYamlConfigHandler is a base class for YAML (.yml) configuration handlers. This class 
    13  * provides a central location for parsing YAML files and detecting required categories
     13 * provides a central location for parsing YAML files
    1414 * 
    1515 * @package    symfony 
     
    6868    } 
    6969 
    70     // get a list of the required categories 
    71     $categories = $this->getParameterHolder()->get('required_categories', array()); 
    72     foreach ($categories as $category) 
    73     { 
    74       if (!isset($config[$category])) 
    75       { 
    76         throw new sfParseException(sprintf('Configuration file "%s" is missing "%s" category.', $configFile, $category)); 
    77       } 
    78     } 
    79  
    8070    return $config; 
    8171  }