File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414
1515namespace ProcessManagerBundle \Controller ;
1616
17- use CoreShop \Bundle \ResourceBundle \Controller \EventDispatcherInterface ;
1817use CoreShop \Bundle \ResourceBundle \Controller \ResourceController ;
19- use CoreShop \Bundle \ResourceBundle \Controller \ResourceFormFactoryInterface ;
20- use CoreShop \Bundle \ResourceBundle \Controller \ViewHandler ;
21- use CoreShop \Bundle \ResourceBundle \Form \Helper \ErrorSerializer ;
22- use CoreShop \Component \Resource \Factory \FactoryInterface ;
23- use CoreShop \Component \Resource \Metadata \MetadataInterface ;
24- use CoreShop \Component \Resource \Repository \RepositoryInterface ;
25- use Doctrine \Persistence \ObjectManager ;
2618use Pimcore \Db ;
2719use ProcessManagerBundle \Model \Process ;
2820use ProcessManagerBundle \Model \ProcessInterface ;
@@ -133,7 +125,7 @@ public function clearAction(Request $request): JsonResponse
133125 $ keepLogs = $ this ->container ->getParameter ('process_manager.keep_logs ' );
134126
135127 /** @var CleanupService $cleanupService */
136- $ cleanupService = $ this ->container ->get (' process_manager.cleanup_service ' );
128+ $ cleanupService = $ this ->container ->get (CleanupService::class );
137129 $ cleanupService ->cleanupDbEntries ($ seconds );
138130 $ cleanupService ->cleanupLogFiles ($ logDirectory , $ seconds , $ keepLogs );
139131 return $ this ->json (['success ' => true ]);
Original file line number Diff line number Diff line change @@ -111,6 +111,3 @@ services:
111111 ProcessManagerBundle\Service\CleanupService :
112112 arguments :
113113 - ' @parameter_bag'
114-
115- # service IDs used by the codebase directly
116- process_manager.cleanup_service : ' @ProcessManagerBundle\Service\CleanupService'
You can’t perform that action at this time.
0 commit comments