Kimai_Registry::setConfig PHP Method

setConfig() public static method

Sets the configuration to use.
public static setConfig ( Kimai_Config $config )
$config Kimai_Config
    public static function setConfig(Kimai_Config $config)
    {
        self::set('Kimai_Config', $config);
    }

Usage Example

Example #1
0
 protected function resetKga()
 {
     if (null === $this->kgaLast) {
         return;
     }
     global $kga;
     $kga = $this->kgaLast;
     \Kimai_Registry::setConfig($kga);
 }
All Usage Examples Of Kimai_Registry::setConfig