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

Small improvements in Config class

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0-RC2
    • Component/s: PHP
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: