Esempio n. 1
0
 /**
  * Loads a resource.
  *
  * @param mixed $resource The resource
  * @param string|null $type The resource type or null if unknown
  *
  * @throws \Exception If something went wrong
  */
 public function load($resource, $type = null)
 {
     $path = $this->locator->locate($resource);
     $bounceParser = new XmlContextParser($path, $this->customNamespaces);
     $bounceContext = $bounceParser->getContext();
     $this->importContext($bounceContext);
 }