diff --git a/app/config/services.yml b/app/config/services.yml index 8d01f536b..1cfae7c60 100644 --- a/app/config/services.yml +++ b/app/config/services.yml @@ -34,7 +34,7 @@ services: Wallabag\CoreBundle\: resource: '../../src/Wallabag/CoreBundle/*' - exclude: ['../../src/Wallabag/CoreBundle/{Controller,Entity,DataFixtures}', '../../src/Wallabag/CoreBundle/Event/*Event.php'] + exclude: ['../../src/Wallabag/CoreBundle/{Consumer,Controller,Entity,DataFixtures}', '../../src/Wallabag/CoreBundle/Event/*Event.php'] # controllers are imported separately to make sure services can be injected # as action arguments even if you don't extend any base controller class diff --git a/app/config/services_rabbit.yml b/app/config/services_rabbit.yml index 372323ab3..ca59a22cd 100644 --- a/app/config/services_rabbit.yml +++ b/app/config/services_rabbit.yml @@ -5,7 +5,7 @@ services: autoconfigure: true public: true - Wallabag\ImportBundle\Consumer\RabbitMQConsumerTotalProxy: + Wallabag\CoreBundle\Consumer\RabbitMQConsumerTotalProxy: arguments: $pocketConsumer: '@old_sound_rabbit_mq.import_pocket_consumer' $readabilityConsumer: '@old_sound_rabbit_mq.import_readability_consumer' @@ -21,61 +21,61 @@ services: $pocketHtmlConsumer: '@old_sound_rabbit_mq.import_pocket_html_consumer' wallabag_import.consumer.amqp.pocket: - class: Wallabag\ImportBundle\Consumer\AMQPEntryConsumer + class: Wallabag\CoreBundle\Consumer\AMQPEntryConsumer arguments: $import: '@Wallabag\ImportBundle\Import\PocketImport' wallabag_import.consumer.amqp.readability: - class: Wallabag\ImportBundle\Consumer\AMQPEntryConsumer + class: Wallabag\CoreBundle\Consumer\AMQPEntryConsumer arguments: $import: '@Wallabag\ImportBundle\Import\ReadabilityImport' wallabag_import.consumer.amqp.instapaper: - class: Wallabag\ImportBundle\Consumer\AMQPEntryConsumer + class: Wallabag\CoreBundle\Consumer\AMQPEntryConsumer arguments: $import: '@Wallabag\ImportBundle\Import\InstapaperImport' wallabag_import.consumer.amqp.pinboard: - class: Wallabag\ImportBundle\Consumer\AMQPEntryConsumer + class: Wallabag\CoreBundle\Consumer\AMQPEntryConsumer arguments: $import: '@Wallabag\ImportBundle\Import\PinboardImport' wallabag_import.consumer.amqp.delicious: - class: Wallabag\ImportBundle\Consumer\AMQPEntryConsumer + class: Wallabag\CoreBundle\Consumer\AMQPEntryConsumer arguments: $import: '@Wallabag\ImportBundle\Import\DeliciousImport' wallabag_import.consumer.amqp.wallabag_v1: - class: Wallabag\ImportBundle\Consumer\AMQPEntryConsumer + class: Wallabag\CoreBundle\Consumer\AMQPEntryConsumer arguments: $import: '@Wallabag\ImportBundle\Import\WallabagV1Import' wallabag_import.consumer.amqp.wallabag_v2: - class: Wallabag\ImportBundle\Consumer\AMQPEntryConsumer + class: Wallabag\CoreBundle\Consumer\AMQPEntryConsumer arguments: $import: '@Wallabag\ImportBundle\Import\WallabagV2Import' wallabag_import.consumer.amqp.elcurator: - class: Wallabag\ImportBundle\Consumer\AMQPEntryConsumer + class: Wallabag\CoreBundle\Consumer\AMQPEntryConsumer arguments: $import: '@Wallabag\ImportBundle\Import\ElcuratorImport' wallabag_import.consumer.amqp.firefox: - class: Wallabag\ImportBundle\Consumer\AMQPEntryConsumer + class: Wallabag\CoreBundle\Consumer\AMQPEntryConsumer arguments: $import: '@Wallabag\ImportBundle\Import\FirefoxImport' wallabag_import.consumer.amqp.chrome: - class: Wallabag\ImportBundle\Consumer\AMQPEntryConsumer + class: Wallabag\CoreBundle\Consumer\AMQPEntryConsumer arguments: $import: '@Wallabag\ImportBundle\Import\ChromeImport' wallabag_import.consumer.amqp.shaarli: - class: Wallabag\ImportBundle\Consumer\AMQPEntryConsumer + class: Wallabag\CoreBundle\Consumer\AMQPEntryConsumer arguments: $import: '@Wallabag\ImportBundle\Import\ShaarliImport' wallabag_import.consumer.amqp.pocket_html: - class: Wallabag\ImportBundle\Consumer\AMQPEntryConsumer + class: Wallabag\CoreBundle\Consumer\AMQPEntryConsumer arguments: $import: '@Wallabag\ImportBundle\Import\PocketHtmlImport' diff --git a/app/config/services_redis.yml b/app/config/services_redis.yml index 12e60f0bb..51c5194dd 100644 --- a/app/config/services_redis.yml +++ b/app/config/services_redis.yml @@ -17,7 +17,7 @@ services: - "@wallabag_import.queue.redis.readability" wallabag_import.consumer.redis.readability: - class: Wallabag\ImportBundle\Consumer\RedisEntryConsumer + class: Wallabag\CoreBundle\Consumer\RedisEntryConsumer arguments: $import: '@Wallabag\ImportBundle\Import\ReadabilityImport' @@ -33,7 +33,7 @@ services: - "@wallabag_import.queue.redis.instapaper" wallabag_import.consumer.redis.instapaper: - class: Wallabag\ImportBundle\Consumer\RedisEntryConsumer + class: Wallabag\CoreBundle\Consumer\RedisEntryConsumer arguments: $import: '@Wallabag\ImportBundle\Import\InstapaperImport' @@ -49,7 +49,7 @@ services: - "@wallabag_import.queue.redis.pinboard" wallabag_import.consumer.redis.pinboard: - class: Wallabag\ImportBundle\Consumer\RedisEntryConsumer + class: Wallabag\CoreBundle\Consumer\RedisEntryConsumer arguments: $import: '@Wallabag\ImportBundle\Import\PinboardImport' @@ -65,7 +65,7 @@ services: - "@wallabag_import.queue.redis.delicious" wallabag_import.consumer.redis.delicious: - class: Wallabag\ImportBundle\Consumer\RedisEntryConsumer + class: Wallabag\CoreBundle\Consumer\RedisEntryConsumer arguments: $import: '@Wallabag\ImportBundle\Import\DeliciousImport' @@ -81,7 +81,7 @@ services: - "@wallabag_import.queue.redis.pocket" wallabag_import.consumer.redis.pocket: - class: Wallabag\ImportBundle\Consumer\RedisEntryConsumer + class: Wallabag\CoreBundle\Consumer\RedisEntryConsumer arguments: $import: '@Wallabag\ImportBundle\Import\PocketImport' @@ -97,7 +97,7 @@ services: - "@wallabag_import.queue.redis.wallabag_v1" wallabag_import.consumer.redis.wallabag_v1: - class: Wallabag\ImportBundle\Consumer\RedisEntryConsumer + class: Wallabag\CoreBundle\Consumer\RedisEntryConsumer arguments: $import: '@Wallabag\ImportBundle\Import\WallabagV1Import' @@ -113,7 +113,7 @@ services: - "@wallabag_import.queue.redis.wallabag_v2" wallabag_import.consumer.redis.wallabag_v2: - class: Wallabag\ImportBundle\Consumer\RedisEntryConsumer + class: Wallabag\CoreBundle\Consumer\RedisEntryConsumer arguments: $import: '@Wallabag\ImportBundle\Import\WallabagV2Import' @@ -129,7 +129,7 @@ services: - "@wallabag_import.queue.redis.elcurator" wallabag_import.consumer.redis.elcurator: - class: Wallabag\ImportBundle\Consumer\RedisEntryConsumer + class: Wallabag\CoreBundle\Consumer\RedisEntryConsumer arguments: $import: '@Wallabag\ImportBundle\Import\ElcuratorImport' @@ -145,7 +145,7 @@ services: - "@wallabag_import.queue.redis.firefox" wallabag_import.consumer.redis.firefox: - class: Wallabag\ImportBundle\Consumer\RedisEntryConsumer + class: Wallabag\CoreBundle\Consumer\RedisEntryConsumer arguments: $import: '@Wallabag\ImportBundle\Import\FirefoxImport' @@ -161,7 +161,7 @@ services: - "@wallabag_import.queue.redis.chrome" wallabag_import.consumer.redis.chrome: - class: Wallabag\ImportBundle\Consumer\RedisEntryConsumer + class: Wallabag\CoreBundle\Consumer\RedisEntryConsumer arguments: $import: '@Wallabag\ImportBundle\Import\ChromeImport' @@ -177,7 +177,7 @@ services: - "@wallabag_import.queue.redis.shaarli" wallabag_import.consumer.redis.shaarli: - class: Wallabag\ImportBundle\Consumer\RedisEntryConsumer + class: Wallabag\CoreBundle\Consumer\RedisEntryConsumer arguments: $import: '@Wallabag\ImportBundle\Import\ShaarliImport' @@ -193,6 +193,6 @@ services: - "@wallabag_import.queue.redis.pocket_html" wallabag_import.consumer.redis.pocket_html: - class: Wallabag\ImportBundle\Consumer\RedisEntryConsumer + class: Wallabag\CoreBundle\Consumer\RedisEntryConsumer arguments: $import: '@Wallabag\ImportBundle\Import\PocketHtmlImport' diff --git a/src/Wallabag/ImportBundle/Consumer/AMQPEntryConsumer.php b/src/Wallabag/CoreBundle/Consumer/AMQPEntryConsumer.php similarity index 87% rename from src/Wallabag/ImportBundle/Consumer/AMQPEntryConsumer.php rename to src/Wallabag/CoreBundle/Consumer/AMQPEntryConsumer.php index be64bef0d..b6fc18760 100644 --- a/src/Wallabag/ImportBundle/Consumer/AMQPEntryConsumer.php +++ b/src/Wallabag/CoreBundle/Consumer/AMQPEntryConsumer.php @@ -1,6 +1,6 @@