/**
  * Set the loader's identifier.
  *
  * @param  mixed $ident A subset of language identifiers.
  * @throws InvalidArgumentException If the ident is invalid.
  * @return self
  */
 public function setIdent($ident)
 {
     if (is_array($ident)) {
         if (count($ident)) {
             sort($ident);
             $ident = implode(',', $ident);
         } else {
             $ident = 'all';
         }
     }
     return parent::setIdent($ident);
 }
 /**
  * Parse a relative path using the base path if needed.
  *
  * @param  string $path The path to resolve.
  * @return string|array|boolean
  */
 public function resolvePath($path)
 {
     $path = parent::resolvePath($path);
     if (is_file($path)) {
         return $path;
     }
     /** If not a file, it's most likely a directory */
     return $this->expandPath($path);
 }