GrumPHP\Linter\Xml\XmlLinter::setLoadFromNet PHP Method

setLoadFromNet() public method

public setLoadFromNet ( boolean $loadFromNet )
$loadFromNet boolean
    public function setLoadFromNet($loadFromNet)
    {
        $this->loadFromNet = $loadFromNet;
    }

Usage Example

コード例 #1
0
ファイル: XmlLint.php プロジェクト: brunocoelhor/grumphp
 /**
  * {@inheritdoc}
  */
 public function run(ContextInterface $context)
 {
     $files = $context->getFiles()->name('*.xml');
     if (0 === count($files)) {
         return;
     }
     $config = $this->getConfiguration();
     $this->linter->setLoadFromNet($config['load_from_net']);
     $this->linter->setXInclude($config['x_include']);
     $this->linter->setDtdValidation($config['dtd_validation']);
     $this->linter->setSchemeValidation($config['scheme_validation']);
     $lintErrors = $this->lint($files);
     if ($lintErrors->count()) {
         throw new RuntimeException($lintErrors->__toString());
     }
 }
All Usage Examples Of GrumPHP\Linter\Xml\XmlLinter::setLoadFromNet