public function handleGetReference(EncodeReferenceEvent $event)
    {
        $definition = $event->getObject();

        if ($definition instanceof Definition) {
            $this->setReference($definition, $event);
        }
    }
public function handleGetReference(EncodeReferenceEvent $event)
    {
        $definition = $event->getObject();

        if ($definition instanceof Definition) {
            $this->setReference($definition, $event);
        }
    }
public function handleGetReference ( EncodeReferenceEvent $ event ) { $ definition = $ event -> getObject ( ) ; if ( $ definition instanceof Definition ) { $ this -> setReference ( $ definition , $ event ) ; } }
Handle get reference event.

@param EncodeReferenceEvent $event The event.

@return void
Handle get reference event .