コード例 #1
0
ファイル: ConfigTest.php プロジェクト: genkgo/xsl
 public function testSetExtensions()
 {
     $config = new Config();
     $config->setExtensions([new XmlSchema()]);
     $this->assertContainsOnlyInstancesOf(XmlSchema::class, $config->getExtensions());
 }
コード例 #2
0
ファイル: XsltProcessor.php プロジェクト: Samshal/xsl
 /**
  * @param Xpath\Compiler $xpathCompiler
  * @return XmlNamespaceInterface[]
  */
 private function getNamespaces($xpathCompiler)
 {
     $namespaces = [new Xsl\XslTransformations($xpathCompiler, $this->config), new Xpath\XmlPath(), new Schema\XmlSchema()];
     return array_merge($namespaces, $this->config->getExtensions());
 }