Ticket #1561: sfGeneratorConfigHandler.class.php.patch
| File sfGeneratorConfigHandler.class.php.patch, 0.7 kB (added by blerou, 4 years ago) |
|---|
-
sfGeneratorConfigHandler.class.php
old new 66 66 $generatorParam = (isset($config['param']) ? $config['param'] : array()); 67 67 68 68 // hack to find the module name 69 preg_match('#'.sfConfig::get('sf_app_module_dir_name').'/([^/]+)/#', $configFiles[ 0], $match);69 preg_match('#'.sfConfig::get('sf_app_module_dir_name').'/([^/]+)/#', $configFiles[1], $match); 70 70 $generatorParam['moduleName'] = $match[1]; 71 71 72 72 $data = $generatorManager->generate($config['class'], $generatorParam);