Пример #1
0
 /**
  * Pushes a class manifest instance onto the top of the stack. This will
  * also include any module configuration files at the same time.
  *
  * @param SS_ClassManifest $manifest
  * @param Boolean Marks the manifest as exclusive. If set to FALSE, will
  * look for classes in earlier manifests as well.
  */
 public function pushManifest(SS_ClassManifest $manifest, $exclusive = true)
 {
     $this->manifests[] = array('exclusive' => $exclusive, 'instance' => $manifest);
     foreach ($manifest->getConfigs() as $config) {
         require_once $config;
     }
 }
Пример #2
0
 /**
  * Pushes a class manifest instance onto the top of the stack. This will
  * also include any module configuration files at the same time.
  *
  * @param SS_ClassManifest $manifest
  */
 public function pushManifest(SS_ClassManifest $manifest)
 {
     $this->manifests[] = $manifest;
     foreach ($manifest->getConfigs() as $config) {
         require_once $config;
     }
 }
 public function testGetConfigs()
 {
     $expect = array("{$this->base}/module/_config.php");
     $this->assertEquals($expect, $this->manifest->getConfigs());
 }