protected function initializeModules() { self::$modules = Configuration::modules($this->settings); self::$actions = Configuration::actions(self::$modules); foreach (self::$modules as $module) { $module->_initialize(); } }
public function __construct(EventDispatcher $dispatcher, $name, $settings) { $this->settings = array_merge($this->defaults, $settings); $this->dispatcher = $dispatcher; $this->suite = $this->createSuite($name); $this->path = $settings['path']; $this->settings['bootstrap'] = $this->path . $settings['bootstrap']; self::$modules = \Codeception\Configuration::modules($settings); self::$actions = \Codeception\Configuration::actions(self::$modules); }