Skip to content

Instantly share code, notes, and snippets.

@heddn
Last active August 18, 2016 16:00
Show Gist options
  • Save heddn/17c7f130feb2c09f2710a9388464ed19 to your computer and use it in GitHub Desktop.
Save heddn/17c7f130feb2c09f2710a9388464ed19 to your computer and use it in GitHub Desktop.
$this->captureOutlineOnBeforeOutlineEvent($event);
if (method_exists($event, 'getSpecificationIterator')) {
foreach ($event->getSpecificationIterator() as $iterator) {
if ($iterator instanceof FeatureNode && ($file = $iterator->getFile() && !empty($file)){
if (($path_parts = pathinfo($file)) && !empty($path_parts['filename'])) {
$formatter->fileName = $path_parts['filename'];
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment