main/core/Manager/Workspace/TransferManager.php
public function exportFiles($data, FileBag $fileBag, Workspace $workspace)
    {
        foreach ($data['orderedTools'] as $key => $orderedToolData) {
            //copied from crud
            $name = 'export_tool_'.$orderedToolData['name'];
            //use an other even. StdClass is not pretty
            if (isset($orderedToolData['data'])) {
                /** @var ExportObjectEvent $event */
                $event = $this->dispatcher->dispatch($name, ExportObjectEvent::class, [
                    new \StdClass(), $fileBag, $orderedToolData['data'], $workspace,
                ]);
                $data['orderedTools'][$key]['data'] = $event->getData();
            }
        }

        return $data;
    }
public function exportFiles($data, FileBag $fileBag, Workspace $workspace)
    {
        foreach ($data['orderedTools'] as $key => $orderedToolData) {
            //copied from crud
            $name = 'export_tool_'.$orderedToolData['name'];
            //use an other even. StdClass is not pretty
            if (isset($orderedToolData['data'])) {
                /** @var ExportObjectEvent $event */
                $event = $this->dispatcher->dispatch($name, ExportObjectEvent::class, [
                    new \StdClass(), $fileBag, $orderedToolData['data'], $workspace,
                ]);
                $data['orderedTools'][$key]['data'] = $event->getData();
            }
        }

        return $data;
    }
public function exportFiles ( $ data , FileBag $ fileBag , Workspace $ workspace ) { foreach ( $ data [ 'orderedTools' ] as $ key => $ orderedToolData ) { //copied from crud $ name = 'export_tool_' . $ orderedToolData [ 'name' ] ; //use an other even. StdClass is not pretty if ( isset ( $ orderedToolData [ 'data' ] ) ) { /** @var ExportObjectEvent $event */ $ event = $ this -> dispatcher -> dispatch ( $ name , ExportObjectEvent :: class , [ new \ StdClass ( ) , $ fileBag , $ orderedToolData [ 'data' ] , $ workspace , ] ) ; $ data [ 'orderedTools' ] [ $ key ] [ 'data' ] = $ event -> getData ( ) ; } } return $ data ; }
once everything is serialized, we add files to the archive.
once everything is serialized we add files to the archive .