public function initialize(TranslatorInterface $translator)
    {
        $event = new CreateTranslatorEvent($translator);
        $this->eventDispatcher->dispatch($event::NAME, $event);

        return $translator;
    }
public function initialize(TranslatorInterface $translator)
    {
        $event = new CreateTranslatorEvent($translator);
        $this->eventDispatcher->dispatch($event::NAME, $event);

        return $translator;
    }
public function initialize ( TranslatorInterface $ translator ) { $ event = new CreateTranslatorEvent ( $ translator ) ; $ this -> eventDispatcher -> dispatch ( $ event :: NAME , $ event ) ; return $ translator ; }
Initialize the translator.

@param TranslatorInterface $translator The translator being initiliazed.

@return TranslatorInterface
Initialize the translator .