protected applyPostprocessing ( ) : void | ||
Résultat | void |
protected function applyPostprocessing()
{
if (!isset($this->fullConfiguration['postprocessors'])) {
return;
}
foreach ($this->fullConfiguration['postprocessors'] as $postprocessorConfiguration) {
$postprocessor = new $postprocessorConfiguration['postprocessor']();
if (!$postprocessor instanceof NodeTypePostprocessorInterface) {
throw new InvalidNodeTypePostprocessorException(sprintf('Expected NodeTypePostprocessorInterface but got "%s"', get_class($postprocessor)), 1364759955);
}
$postprocessorOptions = array();
if (isset($postprocessorConfiguration['postprocessorOptions'])) {
$postprocessorOptions = $postprocessorConfiguration['postprocessorOptions'];
}
$postprocessor->process($this, $this->fullConfiguration, $postprocessorOptions);
}
}