Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Pipeline_Installer
- public function actions(&$configuration)
- {
- foreach ($configuration as $name => $config)
- {
- if($moduleObject = $config['instance'])
- {
- //var_dump(get_class($config['instance']) .'->' .$config['action'] .'()');
- try{
- call_user_func(array($config['instance'], $config['action']), $config);
- } catch (Exception $e) {
- self::_setError(self::$errors, $e->getMessage());
- $configuration[$name]['action'] = false;
- $configuration[$name]['instance'] = false;
- }
- }
- }
- //Doctrine::createTablesFromModels();
- var_dump( Doctrine::getLoadedModels());
- }
- ## Pipeline_Configre
- public function install($config)
- {
- $possibleModels = glob($config['directory'] .'models/*.php', GLOB_MARK);
- if (!empty($possibleModels))
- {
- Doctrine::loadModels($config['directory'] .'models/', Doctrine::MODEL_LOADING_AGGRESSIVE);
- }
- }
Add Comment
Please, Sign In to add comment