Exemple #1
0
 /**
  * @param string $key
  *
  * @throws \Spryker\Client\Kernel\Exception\Container\ContainerKeyNotFoundException
  *
  * @return mixed
  */
 public function getProvidedDependency($key)
 {
     if ($this->container === null) {
         $this->container = $this->createContainerWithProvidedDependencies();
     }
     if ($this->container->offsetExists($key) === false) {
         throw new ContainerKeyNotFoundException($this, $key);
     }
     return $this->container[$key];
 }