Example #1
0
 /**
  * Add another manifest to the list of config manifests to search through.
  *
  * WARNING: Config manifests to not merge entries, and do not solve before/after rules inter-manifest -
  * instead, the last manifest to be added always wins
  */
 public function pushConfigManifest(SS_ConfigManifest $manifest)
 {
     array_unshift($this->manifests, $manifest->yamlConfig);
     // @todo: Do anything with these. They're for caching after config.php has executed
     $this->collectConfigPHPSettings = true;
     $this->configPHPIsSafe = false;
     $manifest->activateConfig();
     $this->collectConfigPHPSettings = false;
 }
/**
 * Clears the config yml manifest
 * @return void
 */
function clear_config_manifest()
{
    $manifest = new \SS_ConfigManifest(BASE_PATH);
    $manifest->regenerate(false, true);
}
Example #3
0
 public function relativeOrder($a, $b)
 {
     return parent::relativeOrder($a, $b);
 }
 /**
  * This is a helper method for getting a new manifest
  * @param $name
  * @return any
  */
 protected function getConfigFixtureValue($name)
 {
     $manifest = new SS_ConfigManifest(dirname(__FILE__) . '/fixtures/configmanifest', true, true);
     return $manifest->get('ConfigManifestTest', $name);
 }