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