]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/BookExportController.php
Fixed some mis-refactoring and split search service
[bookstack] / app / Http / Controllers / BookExportController.php
index cfa3d6a3a3d162e9eb5d3bf19afa5eb4a4f6b7b8..de79d544b8cb9c847d99ae56108f00c092e5afd2 100644 (file)
@@ -2,7 +2,7 @@
 
 namespace BookStack\Http\Controllers;
 
-use BookStack\Entities\ExportService;
+use BookStack\Entities\Tools\ExportFormatter;
 use BookStack\Entities\Repos\BookRepo;
 use Throwable;
 
@@ -15,11 +15,10 @@ class BookExportController extends Controller
     /**
      * BookExportController constructor.
      */
-    public function __construct(BookRepo $bookRepo, ExportService $exportService)
+    public function __construct(BookRepo $bookRepo, ExportFormatter $exportService)
     {
         $this->bookRepo = $bookRepo;
         $this->exportService = $exportService;
-        parent::__construct();
     }
 
     /**