public function __construct(LoggerInterface $log, AsteriskPatternData $config, PosixEvent $posix_event) { $this->config = $config; $this->_log = $log; $this->posix_event = $posix_event; $this->check_config(); $posix_event->addObserver($this, 'SIGHUP'); }
/** * @param LoggerInterface $log * @param SugarDbData $config * @param PosixEvent $posix */ public function __construct(LoggerInterface $log, SugarDbData $config, PosixEvent $posix) { $this->_log = $log; $this->config = $config; $this->create_pdo_object(); $this->setup_keepalive(); $posix->addObserver($this, 'SIGHUP'); }
/** * @param LoggerInterface $log * @param SugarLanguageData $config * @param PosixEvent $posix * @param null $language_dir * @throws AsteriskException */ public function __construct(LoggerInterface $log, SugarLanguageData $config, PosixEvent $posix, $language_dir = null) { $this->_log = $log; $this->config = $config; $this->langdir = $language_dir ? $language_dir : __DIR__ . '/../language/'; if (!$this->load_data($this->config->language)) { if (!$this->load_data('en_us')) { throw new AsteriskException("Can't load language files"); } $this->translate_mtime = 0; } $posix->addObserver($this, 'SIGHUP'); }
public function __construct(LoggerInterface $log, PosixEvent $posix_event, SugarDbData $db_config, SugarSoapData $soap_config, AsteriskData $asterisk_config, AsteriskPatternData $asterisk_pattern, SugarLanguageData $sugar_language) { if (!defined("sugarRootDir")) { throw new AsteriskException("Constant sugarRootDir required"); } define('sugarEntry', true); $this->root = sugarRootDir; $this->_log = $log; $this->db_config = $db_config; $this->soap_config = $soap_config; $this->asterisk_config = $asterisk_config; $this->asterisk_pattern = $asterisk_pattern; $this->sugar_language = $sugar_language; $posix_event->addObserver($this, 'SIGHUP', 100); $this->load_config(); }
public function __construct(LoggerInterface $logger, AsteriskData $config, PosixEvent $posix_event) { $this->logger = $logger; $this->config = $config; $posix_event->addObserver($this, 'SIGHUP'); }