public function handleAddEnclosureToTemplate(AddEnclosureToTemplateEvent $event)
    {
        /** @var Controller $controllerAdapter */
        $controllerAdapter = $this->framework->getAdapter(Controller::class);

        $controllerAdapter->addEnclosuresToTemplate(
            $event->getTemplate(),
            $event->getEnclosureData(),
            $event->getKey()
        );
    }
public function handleAddEnclosureToTemplate(AddEnclosureToTemplateEvent $event)
    {
        /** @var Controller $controllerAdapter */
        $controllerAdapter = $this->framework->getAdapter(Controller::class);

        $controllerAdapter->addEnclosuresToTemplate(
            $event->getTemplate(),
            $event->getEnclosureData(),
            $event->getKey()
        );
    }
public function handleAddEnclosureToTemplate ( AddEnclosureToTemplateEvent $ event ) { /** @var Controller $controllerAdapter */ $ controllerAdapter = $ this -> framework -> getAdapter ( Controller :: class ) ; $ controllerAdapter -> addEnclosuresToTemplate ( $ event -> getTemplate ( ) , $ event -> getEnclosureData ( ) , $ event -> getKey ( ) ) ; }
Add an enclosure to a template.

@param AddEnclosureToTemplateEvent $event The event.

@return void
Add an enclosure to a template .