forked from wallabag/wallabag
Use FQCN as service name for Import services
This commit is contained in:
@ -4,6 +4,7 @@ namespace Wallabag\ImportBundle\Controller;
|
||||
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
use Wallabag\ImportBundle\Import\WallabagV2Import;
|
||||
|
||||
class WallabagV2Controller extends WallabagController
|
||||
{
|
||||
@ -20,7 +21,7 @@ class WallabagV2Controller extends WallabagController
|
||||
*/
|
||||
protected function getImportService()
|
||||
{
|
||||
$service = $this->get('wallabag_import.wallabag_v2.import');
|
||||
$service = $this->get(WallabagV2Import::class);
|
||||
|
||||
if ($this->get('craue_config')->get('import_with_rabbitmq')) {
|
||||
$service->setProducer($this->get('old_sound_rabbit_mq.import_wallabag_v2_producer'));
|
||||
|
||||
Reference in New Issue
Block a user