Пример #1
0
 /**
  * Search the aliases property for a matching alias key.
  *
  * @param   string  $key  The key to search for.
  *
  * @return  string
  *
  * @since   1.0
  */
 protected function resolveAlias($key)
 {
     if (isset($this->aliases[$key])) {
         return $this->aliases[$key];
     }
     if ($this->parent instanceof Container) {
         return $this->parent->resolveAlias($key);
     }
     return $key;
 }