public function hydrateLegacyHandler(HydrationEvent $event)
    {
        $entity = $event->getArgument('entity');
        if ($entity instanceof Content) {
            $entity->setLegacyService($this->legacy);
        }
    }
public function hydrateLegacyHandler(HydrationEvent $event)
    {
        $entity = $event->getArgument('entity');
        if ($entity instanceof Content) {
            $entity->setLegacyService($this->legacy);
        }
    }
public function hydrateLegacyHandler ( HydrationEvent $ event ) { $ entity = $ event -> getArgument ( 'entity' ) ; if ( $ entity instanceof Content ) { $ entity -> setLegacyService ( $ this -> legacy ) ; } }
Hydration handler for the legacy object.

@param HydrationEvent $event
Hydration handler for the legacy object .