/**
  * 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;
 }
Exemple #2
0
 /**
  * Test set parameter.
  */
 public function testSetParameter()
 {
     $this->_cs->setParameter('testgroup.test', 'newTestValue');
     $this->assertEquals('newTestValue', $this->_getConfigEntity()->getValue());
 }
Exemple #3
0
 /**
  * Get zonefile definition path
  *
  * @return string
  */
 protected function _getZoneDefinitionPath()
 {
     return $this->_config->getParameter('dns.config.zonedef');
 }
Exemple #4
0
 /**
  * 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;
 }