public function execute($configFiles)
 {
     $result = parent::execute($configFiles);
     $data = array();
     $first = true;
     foreach ($this->yamlConfig as $viewName => $values) {
         if ($viewName == 'all') {
             continue;
         }
         $data[] = ($first ? '' : 'else ') . "if (\$templateName.\$this->viewName == '{$viewName}')\n" . "{\n";
         $data[] = $this->addCustomizes($viewName);
         $data[] = "}\n";
         $first = false;
     }
     $data[] = ($first ? '' : "else\n{") . "\n";
     $data[] = $this->addCustomizes();
     $data[] = ($first ? '' : "}") . "\n";
     $result .= sprintf("// auto-generated by sfOpenPNEViewConfigHandler\n" . "// date: %s\n%s\n", date('Y/m/d H:i:s'), implode('', $data));
     return $result;
 }
 /**
  * Executes this configuration handler.
  *
  * @param array An array of absolute filesystem path to a configuration file
  *
  * @return string Data to be written to a cache file
  *
  * @throws <b>sfConfigurationException</b> If a requested configuration file does not exist or is not readable
  * @throws <b>sfParseException</b> If a requested configuration file is improperly formatted
  * @throws <b>sfInitializationException</b> If a view.yml key check fails
  */
 public function execute($configFiles)
 {
     $configFiles = array_merge($configFiles, $this->currentFlavorConfigFiles());
     return parent::execute($configFiles);
 }