/** * Get database prefix. * * @throws EmptyDatabasePrefixException * @return string */ protected function _getPrefix() { $prefix = $this->_systemconfig->getParameter('mysql.dbprefix'); if (empty($prefix)) { $this->_logger->error('MySQL database prefix not configured.'); throw new EmptyDatabasePrefixException(); } return $prefix; }
/** * Get parameter with invalid name. * * @expectedException \Jeboehm\Lampcp\ConfigBundle\Exception\ConfigEntityNotFoundException */ public function testGetParameterInvalidName() { $this->_cs->getParameter('invalid'); }
/** * Get zonefile definition path * * @return string */ protected function _getZoneDefinitionPath() { return $this->_config->getParameter('dns.config.zonedef'); }
/** * Check, if the given file is newer than the installation * * @param string $filename * * @return bool */ protected function _checkFileNewerThanInstallation($filename) { $mtime = filemtime($filename); $itime = $this->_configservice->getParameter('core.installdate'); return $mtime > $itime; }