Uploaded image for project: 'Shindig'
  1. Shindig
  2. SHINDIG-1391

Small improvements in Config class

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0-RC2
    • PHP
    • None

    Description

      • Loading of config files is now done with an absolute path which is quicker in php
      • better exception message if config key not found

      Index: php/src/common/Config.php
      ===================================================================
      35c35
      < include_once 'config/container.php';

      > include_once realpath(dirname(_FILE_) . "/../../config") . '/container.php';
      37c37
      < $localConfigPath = realpath(dirname(_FILE_) . "/../../config/local.php");

      > $localConfigPath = realpath(dirname(_FILE_) . "/../../config") . '/local.php';
      64c64
      < throw new ConfigException("Invalid Config Key");

      > throw new ConfigException("Invalid Config Key " . $key);

      Attachments

        Activity

          People

            Unassigned Unassigned
            bhofmann Bastian Hofmann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: