Skip to content

Commit cb9bb48

Browse files
committed
Update DataExportController.php
Resolvendo problema do método depreciado
1 parent 4a30d1d commit cb9bb48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/VMBDataExport/Controller/DataExportController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function exportAction() {
2323

2424
$this->redirect_to = $data['redirect_to'];
2525

26-
$mainService = $this->getServiceLocator()->get('VMBDataExport\Service\MainService');
26+
$mainService = $this->getPluginManager()->getServiceLocator()->get('VMBDataExport\Service\MainService');
2727
$filePath = $mainService->strategy($data['type'],$data);
2828

2929
return $this->redirect()->toUrl($filePath);
@@ -35,4 +35,4 @@ public function exportAction() {
3535

3636
}
3737

38-
}
38+
}

0 commit comments

Comments
 (0)