Example #1
0
 public static function load($key, $config)
 {
     switch ($key) {
         case 'debug':
             self::$debug = $config;
             break;
         case 'developer':
             self::$developer = $config;
             break;
         case 'security':
             self::$security = $config;
             break;
         case 'securityKeys':
             self::$securityKeys = $config;
             break;
         case 'performance':
             self::$performance = $config;
             break;
         case 'relation':
             self::$relation = $config;
             break;
     }
 }
Example #2
0
 public static function getMinimizationOptions($type = 'js')
 {
     switch ($type) {
         case 'js':
             $return = AppConfig::developer('MINIMIZE_JS');
             break;
         case 'css':
             $return = AppConfig::developer('MINIMIZE_CSS');
             break;
     }
     return $return;
 }