public function beforeSpecification(SpecificationEvent $event) { $this->currentSpecificationTitle = $event->getSpecification()->getTitle(); }