private function doPostProcessing($template) { $template->addHook('//*[@transphporm]', new Hook\PostProcess()); return $template; }