public function setLegacyService(ContentLegacyService $service)
    {
        $this->legacy = $service;
        $this->event()->addListener(StorageEvents::PRE_HYDRATE, [$this, 'hydrateLegacyHandler']);
    }
public function setLegacyService(ContentLegacyService $service)
    {
        $this->legacy = $service;
        $this->event()->addListener(StorageEvents::PRE_HYDRATE, [$this, 'hydrateLegacyHandler']);
    }
public function setLegacyService ( ContentLegacyService $ service ) { $ this -> legacy = $ service ; $ this -> event ( ) -> addListener ( StorageEvents :: PRE_HYDRATE , [ $ this , 'hydrateLegacyHandler' ] ) ; }
Set the legacy Content service object.

@param ContentLegacyService $service
Set the legacy Content service object .