Example #1
0
 /**
  * {@inheritdoc}
  */
 public function load($path, array $arguments = [])
 {
     if ($this->caches->containsKey($path) === false) {
         $content = $this->loader->load($path, $arguments);
         $value = new Pair($path, $content);
         $this->caches->add($value);
     }
     return $this->caches->get($path);
 }
 /**
  * Register the loader of fixture
  *
  * @param \holyshared\fixture\FixtureLoader $loader
  * @return holyshared\fixture\container\LoaderContainer
  */
 public function register(FixtureLoader $loader)
 {
     $value = new Pair($loader->getName(), $loader);
     $this->loaders->add($value);
     return $this;
 }