Rename wallabag_core to wallabag

This commit is contained in:
Yassine Guedidi 2024-02-20 00:47:53 +01:00
parent 0b44170e83
commit 74a98aaae2
29 changed files with 185 additions and 185 deletions

View file

@ -9,7 +9,7 @@ During this documentation, we assume the release is `$LAST_WALLABAG_RELEASE` (li
#### Prepare the release #### Prepare the release
- Update these files with new information - Update these files with new information
- `app/config/wallabag.yml` (`wallabag_core.version`) - `app/config/wallabag.yml` (`wallabag.version`)
- `CHANGELOG.md` - `CHANGELOG.md`
- Create a PR named "Prepare $LAST_WALLABAG_RELEASE release". - Create a PR named "Prepare $LAST_WALLABAG_RELEASE release".
- Wait for test to be ok, merge it. - Wait for test to be ok, merge it.
@ -19,7 +19,7 @@ During this documentation, we assume the release is `$LAST_WALLABAG_RELEASE` (li
- [Create the new release on GitHub](https://github.com/wallabag/wallabag/releases/new) by targetting the `master` branch or any appropriate branch (for instance backports). - [Create the new release on GitHub](https://github.com/wallabag/wallabag/releases/new) by targetting the `master` branch or any appropriate branch (for instance backports).
- Update [website](https://github.com/wallabag/website) to change MD5 sum and create the release blog post (based on the changelog). - Update [website](https://github.com/wallabag/website) to change MD5 sum and create the release blog post (based on the changelog).
- Update Dockerfile https://github.com/wallabag/docker (and create a new tag) - Update Dockerfile https://github.com/wallabag/docker (and create a new tag)
- Put the next patch version suffixed with `-dev` in `app/config/wallabag.yml` (`wallabag_core.version`) - Put the next patch version suffixed with `-dev` in `app/config/wallabag.yml` (`wallabag.version`)
- Drink a :beer:! - Drink a :beer:!
### Target PHP version ### Target PHP version

View file

@ -45,7 +45,7 @@ final class Version20190826204730 extends WallabagMigration
public function postUp(Schema $schema): void public function postUp(Schema $schema): void
{ {
foreach ($this->container->getParameter('wallabag_core.default_ignore_origin_instance_rules') as $entity) { foreach ($this->container->getParameter('wallabag.default_ignore_origin_instance_rules') as $entity) {
$previous_rule = $this->container $previous_rule = $this->container
->get('doctrine.orm.default_entity_manager') ->get('doctrine.orm.default_entity_manager')
->getConnection() ->getConnection()

View file

@ -37,7 +37,7 @@ final class Version20230728093912 extends WallabagMigration
'UPDATE ' . $this->getTable('entry') . ' SET is_not_parsed = :isNotParsed WHERE content LIKE :content', 'UPDATE ' . $this->getTable('entry') . ' SET is_not_parsed = :isNotParsed WHERE content LIKE :content',
[ [
'isNotParsed' => true, 'isNotParsed' => true,
'content' => str_replace("\n", '', addslashes($this->container->getParameter('wallabag_core.fetching_error_message'))) . '%', 'content' => str_replace("\n", '', addslashes($this->container->getParameter('wallabag.fetching_error_message'))) . '%',
] ]
); );
} }

View file

@ -302,7 +302,7 @@ old_sound_rabbit_mq:
type: topic type: topic
queue_options: queue_options:
name: 'wallabag.import.pocket' name: 'wallabag.import.pocket'
callback: wallabag_core.consumer.amqp.pocket callback: wallabag.consumer.amqp.pocket
qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"} qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
import_readability: import_readability:
connection: default connection: default
@ -311,7 +311,7 @@ old_sound_rabbit_mq:
type: topic type: topic
queue_options: queue_options:
name: 'wallabag.import.readability' name: 'wallabag.import.readability'
callback: wallabag_core.consumer.amqp.readability callback: wallabag.consumer.amqp.readability
qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"} qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
import_instapaper: import_instapaper:
connection: default connection: default
@ -320,7 +320,7 @@ old_sound_rabbit_mq:
type: topic type: topic
queue_options: queue_options:
name: 'wallabag.import.instapaper' name: 'wallabag.import.instapaper'
callback: wallabag_core.consumer.amqp.instapaper callback: wallabag.consumer.amqp.instapaper
qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"} qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
import_pinboard: import_pinboard:
connection: default connection: default
@ -329,7 +329,7 @@ old_sound_rabbit_mq:
type: topic type: topic
queue_options: queue_options:
name: 'wallabag.import.pinboard' name: 'wallabag.import.pinboard'
callback: wallabag_core.consumer.amqp.pinboard callback: wallabag.consumer.amqp.pinboard
qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"} qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
import_delicious: import_delicious:
connection: default connection: default
@ -338,7 +338,7 @@ old_sound_rabbit_mq:
type: topic type: topic
queue_options: queue_options:
name: 'wallabag.import.delicious' name: 'wallabag.import.delicious'
callback: wallabag_core.consumer.amqp.delicious callback: wallabag.consumer.amqp.delicious
qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"} qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
import_wallabag_v1: import_wallabag_v1:
connection: default connection: default
@ -347,7 +347,7 @@ old_sound_rabbit_mq:
type: topic type: topic
queue_options: queue_options:
name: 'wallabag.import.wallabag_v1' name: 'wallabag.import.wallabag_v1'
callback: wallabag_core.consumer.amqp.wallabag_v1 callback: wallabag.consumer.amqp.wallabag_v1
qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"} qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
import_wallabag_v2: import_wallabag_v2:
connection: default connection: default
@ -356,7 +356,7 @@ old_sound_rabbit_mq:
type: topic type: topic
queue_options: queue_options:
name: 'wallabag.import.wallabag_v2' name: 'wallabag.import.wallabag_v2'
callback: wallabag_core.consumer.amqp.wallabag_v2 callback: wallabag.consumer.amqp.wallabag_v2
qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"} qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
import_elcurator: import_elcurator:
connection: default connection: default
@ -365,7 +365,7 @@ old_sound_rabbit_mq:
type: topic type: topic
queue_options: queue_options:
name: 'wallabag.import.elcurator' name: 'wallabag.import.elcurator'
callback: wallabag_core.consumer.amqp.elcurator callback: wallabag.consumer.amqp.elcurator
qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"} qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
import_firefox: import_firefox:
connection: default connection: default
@ -374,7 +374,7 @@ old_sound_rabbit_mq:
type: topic type: topic
queue_options: queue_options:
name: 'wallabag.import.firefox' name: 'wallabag.import.firefox'
callback: wallabag_core.consumer.amqp.firefox callback: wallabag.consumer.amqp.firefox
qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"} qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
import_chrome: import_chrome:
connection: default connection: default
@ -383,7 +383,7 @@ old_sound_rabbit_mq:
type: topic type: topic
queue_options: queue_options:
name: 'wallabag.import.chrome' name: 'wallabag.import.chrome'
callback: wallabag_core.consumer.amqp.chrome callback: wallabag.consumer.amqp.chrome
qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"} qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
import_shaarli: import_shaarli:
connection: default connection: default
@ -392,7 +392,7 @@ old_sound_rabbit_mq:
type: topic type: topic
queue_options: queue_options:
name: 'wallabag.import.shaarli' name: 'wallabag.import.shaarli'
callback: wallabag_core.consumer.amqp.shaarli callback: wallabag.consumer.amqp.shaarli
qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"} qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
import_pocket_html: import_pocket_html:
connection: default connection: default
@ -401,7 +401,7 @@ old_sound_rabbit_mq:
type: topic type: topic
queue_options: queue_options:
name: 'wallabag.import.pocket_html' name: 'wallabag.import.pocket_html'
callback: wallabag_core.consumer.amqp.pocket_html callback: wallabag.consumer.amqp.pocket_html
qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"} qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
fos_js_routing: fos_js_routing:
@ -432,7 +432,7 @@ sensio_framework_extra:
httplug: httplug:
clients: clients:
wallabag_core: wallabag:
factory: Wallabag\Helper\HttpClientFactory factory: Wallabag\Helper\HttpClientFactory
config: config:
defaults: defaults:

View file

@ -17,11 +17,11 @@ services:
$defaultLocale: '%kernel.default_locale%' $defaultLocale: '%kernel.default_locale%'
$wallabagUrl: '%domain_name%' $wallabagUrl: '%domain_name%'
$tablePrefix: "%database_table_prefix%" $tablePrefix: "%database_table_prefix%"
$encryptionKeyPath: "%wallabag_core.site_credentials.encryption_key_path%" $encryptionKeyPath: "%wallabag.site_credentials.encryption_key_path%"
$fetchingErrorMessageTitle: "%wallabag_core.fetching_error_message_title%" $fetchingErrorMessageTitle: "%wallabag.fetching_error_message_title%"
$fetchingErrorMessage: '%wallabag_core.fetching_error_message%' $fetchingErrorMessage: '%wallabag.fetching_error_message%'
$languages: '%wallabag_core.languages%' $languages: '%wallabag.languages%'
$lifeTime: '%wallabag_core.cache_lifetime%' $lifeTime: '%wallabag.cache_lifetime%'
$cookieFile: "%kernel.cache_dir%/cookiejar.json" $cookieFile: "%kernel.cache_dir%/cookiejar.json"
$logoPath: 'web/img/appicon/apple-touch-icon-152.png' $logoPath: 'web/img/appicon/apple-touch-icon-152.png'
$registrationEnabled: '%fosuser_registration%' $registrationEnabled: '%fosuser_registration%'
@ -30,7 +30,7 @@ services:
$senderName: "%scheb_two_factor.email.sender_name%" $senderName: "%scheb_two_factor.email.sender_name%"
$storeArticleHeaders: '@=service(''craue_config'').get(''store_article_headers'')' $storeArticleHeaders: '@=service(''craue_config'').get(''store_article_headers'')'
$supportUrl: '@=service(''craue_config'').get(''wallabag_support_url'')' $supportUrl: '@=service(''craue_config'').get(''wallabag_support_url'')'
$fonts: '%wallabag_core.fonts%' $fonts: '%wallabag.fonts%'
Wallabag\: Wallabag\:
resource: '../../src/*' resource: '../../src/*'
@ -46,62 +46,62 @@ services:
Wallabag\Controller\Import\ChromeController: Wallabag\Controller\Import\ChromeController:
arguments: arguments:
$rabbitMqProducer: '@old_sound_rabbit_mq.import_chrome_producer' $rabbitMqProducer: '@old_sound_rabbit_mq.import_chrome_producer'
$redisProducer: '@wallabag_core.producer.redis.chrome' $redisProducer: '@wallabag.producer.redis.chrome'
Wallabag\Controller\Import\DeliciousController: Wallabag\Controller\Import\DeliciousController:
arguments: arguments:
$rabbitMqProducer: '@old_sound_rabbit_mq.import_delicious_producer' $rabbitMqProducer: '@old_sound_rabbit_mq.import_delicious_producer'
$redisProducer: '@wallabag_core.producer.redis.delicious' $redisProducer: '@wallabag.producer.redis.delicious'
Wallabag\Controller\Import\ElcuratorController: Wallabag\Controller\Import\ElcuratorController:
arguments: arguments:
$rabbitMqProducer: '@old_sound_rabbit_mq.import_elcurator_producer' $rabbitMqProducer: '@old_sound_rabbit_mq.import_elcurator_producer'
$redisProducer: '@wallabag_core.producer.redis.elcurator' $redisProducer: '@wallabag.producer.redis.elcurator'
Wallabag\Controller\Import\FirefoxController: Wallabag\Controller\Import\FirefoxController:
arguments: arguments:
$rabbitMqProducer: '@old_sound_rabbit_mq.import_firefox_producer' $rabbitMqProducer: '@old_sound_rabbit_mq.import_firefox_producer'
$redisProducer: '@wallabag_core.producer.redis.firefox' $redisProducer: '@wallabag.producer.redis.firefox'
Wallabag\Controller\Import\InstapaperController: Wallabag\Controller\Import\InstapaperController:
arguments: arguments:
$rabbitMqProducer: '@old_sound_rabbit_mq.import_instapaper_producer' $rabbitMqProducer: '@old_sound_rabbit_mq.import_instapaper_producer'
$redisProducer: '@wallabag_core.producer.redis.instapaper' $redisProducer: '@wallabag.producer.redis.instapaper'
Wallabag\Controller\Import\PinboardController: Wallabag\Controller\Import\PinboardController:
arguments: arguments:
$rabbitMqProducer: '@old_sound_rabbit_mq.import_pinboard_producer' $rabbitMqProducer: '@old_sound_rabbit_mq.import_pinboard_producer'
$redisProducer: '@wallabag_core.producer.redis.pinboard' $redisProducer: '@wallabag.producer.redis.pinboard'
Wallabag\Controller\Import\PocketController: Wallabag\Controller\Import\PocketController:
arguments: arguments:
$rabbitMqProducer: '@old_sound_rabbit_mq.import_pocket_producer' $rabbitMqProducer: '@old_sound_rabbit_mq.import_pocket_producer'
$redisProducer: '@wallabag_core.producer.redis.pocket' $redisProducer: '@wallabag.producer.redis.pocket'
Wallabag\Controller\Import\ReadabilityController: Wallabag\Controller\Import\ReadabilityController:
arguments: arguments:
$rabbitMqProducer: '@old_sound_rabbit_mq.import_readability_producer' $rabbitMqProducer: '@old_sound_rabbit_mq.import_readability_producer'
$redisProducer: '@wallabag_core.producer.redis.readability' $redisProducer: '@wallabag.producer.redis.readability'
Wallabag\Controller\Import\WallabagV1Controller: Wallabag\Controller\Import\WallabagV1Controller:
arguments: arguments:
$rabbitMqProducer: '@old_sound_rabbit_mq.import_wallabag_v1_producer' $rabbitMqProducer: '@old_sound_rabbit_mq.import_wallabag_v1_producer'
$redisProducer: '@wallabag_core.producer.redis.wallabag_v1' $redisProducer: '@wallabag.producer.redis.wallabag_v1'
Wallabag\Controller\Import\WallabagV2Controller: Wallabag\Controller\Import\WallabagV2Controller:
arguments: arguments:
$rabbitMqProducer: '@old_sound_rabbit_mq.import_wallabag_v2_producer' $rabbitMqProducer: '@old_sound_rabbit_mq.import_wallabag_v2_producer'
$redisProducer: '@wallabag_core.producer.redis.wallabag_v2' $redisProducer: '@wallabag.producer.redis.wallabag_v2'
Wallabag\Controller\Import\ShaarliController: Wallabag\Controller\Import\ShaarliController:
arguments: arguments:
$rabbitMqProducer: '@old_sound_rabbit_mq.import_shaarli_producer' $rabbitMqProducer: '@old_sound_rabbit_mq.import_shaarli_producer'
$redisProducer: '@wallabag_core.producer.redis.shaarli' $redisProducer: '@wallabag.producer.redis.shaarli'
Wallabag\Controller\Import\PocketHtmlController: Wallabag\Controller\Import\PocketHtmlController:
arguments: arguments:
$rabbitMqProducer: '@old_sound_rabbit_mq.import_pocket_html_producer' $rabbitMqProducer: '@old_sound_rabbit_mq.import_pocket_html_producer'
$redisProducer: '@wallabag_core.producer.redis.pocket_html' $redisProducer: '@wallabag.producer.redis.pocket_html'
Doctrine\DBAL\Connection: Doctrine\DBAL\Connection:
alias: doctrine.dbal.default_connection alias: doctrine.dbal.default_connection
@ -177,8 +177,8 @@ services:
Graby\Graby: Graby\Graby:
arguments: arguments:
$config: $config:
error_message: '%wallabag_core.fetching_error_message%' error_message: '%wallabag.fetching_error_message%'
error_message_title: '%wallabag_core.fetching_error_message_title%' error_message_title: '%wallabag.fetching_error_message_title%'
calls: calls:
- [ setLogger, [ "@logger" ] ] - [ setLogger, [ "@logger" ] ]
tags: tags:
@ -188,8 +188,8 @@ services:
arguments: arguments:
$config: {} $config: {}
wallabag_core.http_client: wallabag.http_client:
alias: 'httplug.client.wallabag_core' alias: 'httplug.client.wallabag'
Wallabag\SiteConfig\GrabySiteConfigBuilder: Wallabag\SiteConfig\GrabySiteConfigBuilder:
tags: tags:
@ -255,8 +255,8 @@ services:
arguments: arguments:
$databaseDriver: '%database_driver%' $databaseDriver: '%database_driver%'
$databaseName: '%database_name%' $databaseName: '%database_name%'
$defaultSettings: '%wallabag_core.default_internal_settings%' $defaultSettings: '%wallabag.default_internal_settings%'
$defaultIgnoreOriginInstanceRules: '%wallabag_core.default_ignore_origin_instance_rules%' $defaultIgnoreOriginInstanceRules: '%wallabag.default_ignore_origin_instance_rules%'
Wallabag\Mailer\UserMailer: Wallabag\Mailer\UserMailer:
arguments: arguments:
@ -270,13 +270,13 @@ services:
Wallabag\Event\Listener\CreateConfigListener: Wallabag\Event\Listener\CreateConfigListener:
arguments: arguments:
$itemsOnPage: "%wallabag_core.items_on_page%" $itemsOnPage: "%wallabag.items_on_page%"
$feedLimit: "%wallabag_core.feed_limit%" $feedLimit: "%wallabag.feed_limit%"
$language: "%wallabag_core.language%" $language: "%wallabag.language%"
$readingSpeed: "%wallabag_core.reading_speed%" $readingSpeed: "%wallabag.reading_speed%"
$actionMarkAsRead: "%wallabag_core.action_mark_as_read%" $actionMarkAsRead: "%wallabag.action_mark_as_read%"
$listMode: "%wallabag_core.list_mode%" $listMode: "%wallabag.list_mode%"
$displayThumbnails: "%wallabag_core.display_thumbnails%" $displayThumbnails: "%wallabag.display_thumbnails%"
Wallabag\Event\Listener\AuthenticationFailureListener: Wallabag\Event\Listener\AuthenticationFailureListener:
tags: tags:
@ -286,51 +286,51 @@ services:
calls: calls:
- [ setClient, [ '@Symfony\Contracts\HttpClient\HttpClientInterface $pocketClient' ] ] - [ setClient, [ '@Symfony\Contracts\HttpClient\HttpClientInterface $pocketClient' ] ]
tags: tags:
- { name: wallabag_core.import, alias: pocket } - { name: wallabag.import, alias: pocket }
Wallabag\Import\WallabagV1Import: Wallabag\Import\WallabagV1Import:
tags: tags:
- { name: wallabag_core.import, alias: wallabag_v1 } - { name: wallabag.import, alias: wallabag_v1 }
Wallabag\Import\WallabagV2Import: Wallabag\Import\WallabagV2Import:
tags: tags:
- { name: wallabag_core.import, alias: wallabag_v2 } - { name: wallabag.import, alias: wallabag_v2 }
Wallabag\Import\ElcuratorImport: Wallabag\Import\ElcuratorImport:
tags: tags:
- { name: wallabag_core.import, alias: elcurator } - { name: wallabag.import, alias: elcurator }
Wallabag\Import\ReadabilityImport: Wallabag\Import\ReadabilityImport:
tags: tags:
- { name: wallabag_core.import, alias: readability } - { name: wallabag.import, alias: readability }
Wallabag\Import\InstapaperImport: Wallabag\Import\InstapaperImport:
tags: tags:
- { name: wallabag_core.import, alias: instapaper } - { name: wallabag.import, alias: instapaper }
Wallabag\Import\PinboardImport: Wallabag\Import\PinboardImport:
tags: tags:
- { name: wallabag_core.import, alias: pinboard } - { name: wallabag.import, alias: pinboard }
Wallabag\Import\DeliciousImport: Wallabag\Import\DeliciousImport:
tags: tags:
- { name: wallabag_core.import, alias: delicious } - { name: wallabag.import, alias: delicious }
Wallabag\Import\FirefoxImport: Wallabag\Import\FirefoxImport:
tags: tags:
- { name: wallabag_core.import, alias: firefox } - { name: wallabag.import, alias: firefox }
Wallabag\Import\ChromeImport: Wallabag\Import\ChromeImport:
tags: tags:
- { name: wallabag_core.import, alias: chrome } - { name: wallabag.import, alias: chrome }
Wallabag\Import\ShaarliImport: Wallabag\Import\ShaarliImport:
tags: tags:
- { name: wallabag_core.import, alias: shaarli } - { name: wallabag.import, alias: shaarli }
Wallabag\Import\PocketHtmlImport: Wallabag\Import\PocketHtmlImport:
tags: tags:
- { name: wallabag_core.import, alias: pocket_html } - { name: wallabag.import, alias: pocket_html }
# to factorize the proximity and bypass translation for prev & next # to factorize the proximity and bypass translation for prev & next
pagerfanta.view.default_wallabag: pagerfanta.view.default_wallabag:

View file

@ -20,62 +20,62 @@ services:
$shaarliConsumer: '@old_sound_rabbit_mq.import_shaarli_consumer' $shaarliConsumer: '@old_sound_rabbit_mq.import_shaarli_consumer'
$pocketHtmlConsumer: '@old_sound_rabbit_mq.import_pocket_html_consumer' $pocketHtmlConsumer: '@old_sound_rabbit_mq.import_pocket_html_consumer'
wallabag_core.consumer.amqp.pocket: wallabag.consumer.amqp.pocket:
class: Wallabag\Consumer\AMQPEntryConsumer class: Wallabag\Consumer\AMQPEntryConsumer
arguments: arguments:
$import: '@Wallabag\Import\PocketImport' $import: '@Wallabag\Import\PocketImport'
wallabag_core.consumer.amqp.readability: wallabag.consumer.amqp.readability:
class: Wallabag\Consumer\AMQPEntryConsumer class: Wallabag\Consumer\AMQPEntryConsumer
arguments: arguments:
$import: '@Wallabag\Import\ReadabilityImport' $import: '@Wallabag\Import\ReadabilityImport'
wallabag_core.consumer.amqp.instapaper: wallabag.consumer.amqp.instapaper:
class: Wallabag\Consumer\AMQPEntryConsumer class: Wallabag\Consumer\AMQPEntryConsumer
arguments: arguments:
$import: '@Wallabag\Import\InstapaperImport' $import: '@Wallabag\Import\InstapaperImport'
wallabag_core.consumer.amqp.pinboard: wallabag.consumer.amqp.pinboard:
class: Wallabag\Consumer\AMQPEntryConsumer class: Wallabag\Consumer\AMQPEntryConsumer
arguments: arguments:
$import: '@Wallabag\Import\PinboardImport' $import: '@Wallabag\Import\PinboardImport'
wallabag_core.consumer.amqp.delicious: wallabag.consumer.amqp.delicious:
class: Wallabag\Consumer\AMQPEntryConsumer class: Wallabag\Consumer\AMQPEntryConsumer
arguments: arguments:
$import: '@Wallabag\Import\DeliciousImport' $import: '@Wallabag\Import\DeliciousImport'
wallabag_core.consumer.amqp.wallabag_v1: wallabag.consumer.amqp.wallabag_v1:
class: Wallabag\Consumer\AMQPEntryConsumer class: Wallabag\Consumer\AMQPEntryConsumer
arguments: arguments:
$import: '@Wallabag\Import\WallabagV1Import' $import: '@Wallabag\Import\WallabagV1Import'
wallabag_core.consumer.amqp.wallabag_v2: wallabag.consumer.amqp.wallabag_v2:
class: Wallabag\Consumer\AMQPEntryConsumer class: Wallabag\Consumer\AMQPEntryConsumer
arguments: arguments:
$import: '@Wallabag\Import\WallabagV2Import' $import: '@Wallabag\Import\WallabagV2Import'
wallabag_core.consumer.amqp.elcurator: wallabag.consumer.amqp.elcurator:
class: Wallabag\Consumer\AMQPEntryConsumer class: Wallabag\Consumer\AMQPEntryConsumer
arguments: arguments:
$import: '@Wallabag\Import\ElcuratorImport' $import: '@Wallabag\Import\ElcuratorImport'
wallabag_core.consumer.amqp.firefox: wallabag.consumer.amqp.firefox:
class: Wallabag\Consumer\AMQPEntryConsumer class: Wallabag\Consumer\AMQPEntryConsumer
arguments: arguments:
$import: '@Wallabag\Import\FirefoxImport' $import: '@Wallabag\Import\FirefoxImport'
wallabag_core.consumer.amqp.chrome: wallabag.consumer.amqp.chrome:
class: Wallabag\Consumer\AMQPEntryConsumer class: Wallabag\Consumer\AMQPEntryConsumer
arguments: arguments:
$import: '@Wallabag\Import\ChromeImport' $import: '@Wallabag\Import\ChromeImport'
wallabag_core.consumer.amqp.shaarli: wallabag.consumer.amqp.shaarli:
class: Wallabag\Consumer\AMQPEntryConsumer class: Wallabag\Consumer\AMQPEntryConsumer
arguments: arguments:
$import: '@Wallabag\Import\ShaarliImport' $import: '@Wallabag\Import\ShaarliImport'
wallabag_core.consumer.amqp.pocket_html: wallabag.consumer.amqp.pocket_html:
class: Wallabag\Consumer\AMQPEntryConsumer class: Wallabag\Consumer\AMQPEntryConsumer
arguments: arguments:
$import: '@Wallabag\Import\PocketHtmlImport' $import: '@Wallabag\Import\PocketHtmlImport'

View file

@ -6,193 +6,193 @@ services:
public: true public: true
# readability # readability
wallabag_core.queue.redis.readability: wallabag.queue.redis.readability:
class: Simpleue\Queue\RedisQueue class: Simpleue\Queue\RedisQueue
arguments: arguments:
$queueName: "wallabag.import.readability" $queueName: "wallabag.import.readability"
wallabag_core.producer.redis.readability: wallabag.producer.redis.readability:
class: Wallabag\Redis\Producer class: Wallabag\Redis\Producer
arguments: arguments:
- "@wallabag_core.queue.redis.readability" - "@wallabag.queue.redis.readability"
wallabag_core.consumer.redis.readability: wallabag.consumer.redis.readability:
class: Wallabag\Consumer\RedisEntryConsumer class: Wallabag\Consumer\RedisEntryConsumer
arguments: arguments:
$import: '@Wallabag\Import\ReadabilityImport' $import: '@Wallabag\Import\ReadabilityImport'
# instapaper # instapaper
wallabag_core.queue.redis.instapaper: wallabag.queue.redis.instapaper:
class: Simpleue\Queue\RedisQueue class: Simpleue\Queue\RedisQueue
arguments: arguments:
$queueName: "wallabag.import.instapaper" $queueName: "wallabag.import.instapaper"
wallabag_core.producer.redis.instapaper: wallabag.producer.redis.instapaper:
class: Wallabag\Redis\Producer class: Wallabag\Redis\Producer
arguments: arguments:
- "@wallabag_core.queue.redis.instapaper" - "@wallabag.queue.redis.instapaper"
wallabag_core.consumer.redis.instapaper: wallabag.consumer.redis.instapaper:
class: Wallabag\Consumer\RedisEntryConsumer class: Wallabag\Consumer\RedisEntryConsumer
arguments: arguments:
$import: '@Wallabag\Import\InstapaperImport' $import: '@Wallabag\Import\InstapaperImport'
# pinboard # pinboard
wallabag_core.queue.redis.pinboard: wallabag.queue.redis.pinboard:
class: Simpleue\Queue\RedisQueue class: Simpleue\Queue\RedisQueue
arguments: arguments:
$queueName: "wallabag.import.pinboard" $queueName: "wallabag.import.pinboard"
wallabag_core.producer.redis.pinboard: wallabag.producer.redis.pinboard:
class: Wallabag\Redis\Producer class: Wallabag\Redis\Producer
arguments: arguments:
- "@wallabag_core.queue.redis.pinboard" - "@wallabag.queue.redis.pinboard"
wallabag_core.consumer.redis.pinboard: wallabag.consumer.redis.pinboard:
class: Wallabag\Consumer\RedisEntryConsumer class: Wallabag\Consumer\RedisEntryConsumer
arguments: arguments:
$import: '@Wallabag\Import\PinboardImport' $import: '@Wallabag\Import\PinboardImport'
# delicious # delicious
wallabag_core.queue.redis.delicious: wallabag.queue.redis.delicious:
class: Simpleue\Queue\RedisQueue class: Simpleue\Queue\RedisQueue
arguments: arguments:
$queueName: "wallabag.import.delicious" $queueName: "wallabag.import.delicious"
wallabag_core.producer.redis.delicious: wallabag.producer.redis.delicious:
class: Wallabag\Redis\Producer class: Wallabag\Redis\Producer
arguments: arguments:
- "@wallabag_core.queue.redis.delicious" - "@wallabag.queue.redis.delicious"
wallabag_core.consumer.redis.delicious: wallabag.consumer.redis.delicious:
class: Wallabag\Consumer\RedisEntryConsumer class: Wallabag\Consumer\RedisEntryConsumer
arguments: arguments:
$import: '@Wallabag\Import\DeliciousImport' $import: '@Wallabag\Import\DeliciousImport'
# pocket # pocket
wallabag_core.queue.redis.pocket: wallabag.queue.redis.pocket:
class: Simpleue\Queue\RedisQueue class: Simpleue\Queue\RedisQueue
arguments: arguments:
$queueName: "wallabag.import.pocket" $queueName: "wallabag.import.pocket"
wallabag_core.producer.redis.pocket: wallabag.producer.redis.pocket:
class: Wallabag\Redis\Producer class: Wallabag\Redis\Producer
arguments: arguments:
- "@wallabag_core.queue.redis.pocket" - "@wallabag.queue.redis.pocket"
wallabag_core.consumer.redis.pocket: wallabag.consumer.redis.pocket:
class: Wallabag\Consumer\RedisEntryConsumer class: Wallabag\Consumer\RedisEntryConsumer
arguments: arguments:
$import: '@Wallabag\Import\PocketImport' $import: '@Wallabag\Import\PocketImport'
# wallabag v1 # wallabag v1
wallabag_core.queue.redis.wallabag_v1: wallabag.queue.redis.wallabag_v1:
class: Simpleue\Queue\RedisQueue class: Simpleue\Queue\RedisQueue
arguments: arguments:
$queueName: "wallabag.import.wallabag_v1" $queueName: "wallabag.import.wallabag_v1"
wallabag_core.producer.redis.wallabag_v1: wallabag.producer.redis.wallabag_v1:
class: Wallabag\Redis\Producer class: Wallabag\Redis\Producer
arguments: arguments:
- "@wallabag_core.queue.redis.wallabag_v1" - "@wallabag.queue.redis.wallabag_v1"
wallabag_core.consumer.redis.wallabag_v1: wallabag.consumer.redis.wallabag_v1:
class: Wallabag\Consumer\RedisEntryConsumer class: Wallabag\Consumer\RedisEntryConsumer
arguments: arguments:
$import: '@Wallabag\Import\WallabagV1Import' $import: '@Wallabag\Import\WallabagV1Import'
# wallabag v2 # wallabag v2
wallabag_core.queue.redis.wallabag_v2: wallabag.queue.redis.wallabag_v2:
class: Simpleue\Queue\RedisQueue class: Simpleue\Queue\RedisQueue
arguments: arguments:
$queueName: "wallabag.import.wallabag_v2" $queueName: "wallabag.import.wallabag_v2"
wallabag_core.producer.redis.wallabag_v2: wallabag.producer.redis.wallabag_v2:
class: Wallabag\Redis\Producer class: Wallabag\Redis\Producer
arguments: arguments:
- "@wallabag_core.queue.redis.wallabag_v2" - "@wallabag.queue.redis.wallabag_v2"
wallabag_core.consumer.redis.wallabag_v2: wallabag.consumer.redis.wallabag_v2:
class: Wallabag\Consumer\RedisEntryConsumer class: Wallabag\Consumer\RedisEntryConsumer
arguments: arguments:
$import: '@Wallabag\Import\WallabagV2Import' $import: '@Wallabag\Import\WallabagV2Import'
# elcurator # elcurator
wallabag_core.queue.redis.elcurator: wallabag.queue.redis.elcurator:
class: Simpleue\Queue\RedisQueue class: Simpleue\Queue\RedisQueue
arguments: arguments:
$queueName: "wallabag.import.elcurator" $queueName: "wallabag.import.elcurator"
wallabag_core.producer.redis.elcurator: wallabag.producer.redis.elcurator:
class: Wallabag\Redis\Producer class: Wallabag\Redis\Producer
arguments: arguments:
- "@wallabag_core.queue.redis.elcurator" - "@wallabag.queue.redis.elcurator"
wallabag_core.consumer.redis.elcurator: wallabag.consumer.redis.elcurator:
class: Wallabag\Consumer\RedisEntryConsumer class: Wallabag\Consumer\RedisEntryConsumer
arguments: arguments:
$import: '@Wallabag\Import\ElcuratorImport' $import: '@Wallabag\Import\ElcuratorImport'
# firefox # firefox
wallabag_core.queue.redis.firefox: wallabag.queue.redis.firefox:
class: Simpleue\Queue\RedisQueue class: Simpleue\Queue\RedisQueue
arguments: arguments:
$queueName: "wallabag.import.firefox" $queueName: "wallabag.import.firefox"
wallabag_core.producer.redis.firefox: wallabag.producer.redis.firefox:
class: Wallabag\Redis\Producer class: Wallabag\Redis\Producer
arguments: arguments:
- "@wallabag_core.queue.redis.firefox" - "@wallabag.queue.redis.firefox"
wallabag_core.consumer.redis.firefox: wallabag.consumer.redis.firefox:
class: Wallabag\Consumer\RedisEntryConsumer class: Wallabag\Consumer\RedisEntryConsumer
arguments: arguments:
$import: '@Wallabag\Import\FirefoxImport' $import: '@Wallabag\Import\FirefoxImport'
# chrome # chrome
wallabag_core.queue.redis.chrome: wallabag.queue.redis.chrome:
class: Simpleue\Queue\RedisQueue class: Simpleue\Queue\RedisQueue
arguments: arguments:
$queueName: "wallabag.import.chrome" $queueName: "wallabag.import.chrome"
wallabag_core.producer.redis.chrome: wallabag.producer.redis.chrome:
class: Wallabag\Redis\Producer class: Wallabag\Redis\Producer
arguments: arguments:
- "@wallabag_core.queue.redis.chrome" - "@wallabag.queue.redis.chrome"
wallabag_core.consumer.redis.chrome: wallabag.consumer.redis.chrome:
class: Wallabag\Consumer\RedisEntryConsumer class: Wallabag\Consumer\RedisEntryConsumer
arguments: arguments:
$import: '@Wallabag\Import\ChromeImport' $import: '@Wallabag\Import\ChromeImport'
# shaarli # shaarli
wallabag_core.queue.redis.shaarli: wallabag.queue.redis.shaarli:
class: Simpleue\Queue\RedisQueue class: Simpleue\Queue\RedisQueue
arguments: arguments:
$queueName: "wallabag.import.shaarli" $queueName: "wallabag.import.shaarli"
wallabag_core.producer.redis.shaarli: wallabag.producer.redis.shaarli:
class: Wallabag\Redis\Producer class: Wallabag\Redis\Producer
arguments: arguments:
- "@wallabag_core.queue.redis.shaarli" - "@wallabag.queue.redis.shaarli"
wallabag_core.consumer.redis.shaarli: wallabag.consumer.redis.shaarli:
class: Wallabag\Consumer\RedisEntryConsumer class: Wallabag\Consumer\RedisEntryConsumer
arguments: arguments:
$import: '@Wallabag\Import\ShaarliImport' $import: '@Wallabag\Import\ShaarliImport'
# pocket html # pocket html
wallabag_core.queue.redis.pocket_html: wallabag.queue.redis.pocket_html:
class: Simpleue\Queue\RedisQueue class: Simpleue\Queue\RedisQueue
arguments: arguments:
$queueName: "wallabag.import.pocket_html" $queueName: "wallabag.import.pocket_html"
wallabag_core.producer.redis.pocket_html: wallabag.producer.redis.pocket_html:
class: Wallabag\Redis\Producer class: Wallabag\Redis\Producer
arguments: arguments:
- "@wallabag_core.queue.redis.pocket_html" - "@wallabag.queue.redis.pocket_html"
wallabag_core.consumer.redis.pocket_html: wallabag.consumer.redis.pocket_html:
class: Wallabag\Consumer\RedisEntryConsumer class: Wallabag\Consumer\RedisEntryConsumer
arguments: arguments:
$import: '@Wallabag\Import\PocketHtmlImport' $import: '@Wallabag\Import\PocketHtmlImport'

View file

@ -8,7 +8,7 @@ services:
alias: fos_user.security.login_manager alias: fos_user.security.login_manager
public: true public: true
wallabag_core.entry_repository.test: wallabag.entry_repository.test:
alias: Wallabag\Repository\EntryRepository alias: Wallabag\Repository\EntryRepository
public: true public: true

View file

@ -1,7 +1,7 @@
parameters: parameters:
wallabag_core.version: 2.6.8 wallabag.version: 2.6.8
wallabag_core.paypal_url: "https://liberapay.com/wallabag/donate" wallabag.paypal_url: "https://liberapay.com/wallabag/donate"
wallabag_core.languages: wallabag.languages:
en: 'English' en: 'English'
fr: 'Français' fr: 'Français'
de: 'Deutsch' de: 'Deutsch'
@ -23,20 +23,20 @@ parameters:
hr: 'Hrvatski' hr: 'Hrvatski'
cs: 'Čeština' cs: 'Čeština'
el: 'Ελληνικά' el: 'Ελληνικά'
wallabag_core.items_on_page: 12 wallabag.items_on_page: 12
wallabag_core.language: '%locale%' wallabag.language: '%locale%'
wallabag_core.feed_limit: 50 wallabag.feed_limit: 50
wallabag_core.reading_speed: 200 wallabag.reading_speed: 200
wallabag_core.cache_lifetime: 10 wallabag.cache_lifetime: 10
wallabag_core.action_mark_as_read: 1 wallabag.action_mark_as_read: 1
wallabag_core.list_mode: 0 wallabag.list_mode: 0
wallabag_core.display_thumbnails: 1 wallabag.display_thumbnails: 1
wallabag_core.fetching_error_message_title: 'No title found' wallabag.fetching_error_message_title: 'No title found'
wallabag_core.fetching_error_message: | wallabag.fetching_error_message: |
wallabag can't retrieve contents for this article. Please <a href="https://doc.wallabag.org/en/user/errors_during_fetching.html#how-can-i-help-to-fix-that">troubleshoot this issue</a>. wallabag can't retrieve contents for this article. Please <a href="https://doc.wallabag.org/en/user/errors_during_fetching.html#how-can-i-help-to-fix-that">troubleshoot this issue</a>.
wallabag_core.api_limit_mass_actions: 10 wallabag.api_limit_mass_actions: 10
wallabag_core.site_credentials.encryption_key_path: "%kernel.project_dir%/data/site-credentials-secret-key.txt" wallabag.site_credentials.encryption_key_path: "%kernel.project_dir%/data/site-credentials-secret-key.txt"
wallabag_core.default_internal_settings: wallabag.default_internal_settings:
- -
name: share_public name: share_public
value: 1 value: 1
@ -146,14 +146,14 @@ parameters:
value: 0 value: 0
section: entry section: entry
wallabag_core.default_ignore_origin_instance_rules: wallabag.default_ignore_origin_instance_rules:
- -
rule: host = "feedproxy.google.com" rule: host = "feedproxy.google.com"
- -
rule: host = "feeds.reuters.com" rule: host = "feeds.reuters.com"
- -
rule: _all ~ "https?://www\.lemonde\.fr/tiny.*" rule: _all ~ "https?://www\.lemonde\.fr/tiny.*"
wallabag_core.fonts: wallabag.fonts:
- 'Sans-serif' - 'Sans-serif'
- 'Serif' - 'Serif'
- 'Atkinson Hyperlegible' - 'Atkinson Hyperlegible'
@ -162,5 +162,5 @@ parameters:
- 'Montserrat' - 'Montserrat'
- 'OpenDyslexicRegular' - 'OpenDyslexicRegular'
- 'Oswald' - 'Oswald'
wallabag_core.allow_mimetypes: ['application/octet-stream', 'application/json', 'text/plain', 'text/csv', 'text/html'] wallabag.allow_mimetypes: ['application/octet-stream', 'application/json', 'text/plain', 'text/csv', 'text/html']
wallabag_core.resource_dir: "%kernel.project_dir%/web/uploads/import" wallabag.resource_dir: "%kernel.project_dir%/web/uploads/import"

View file

@ -40,13 +40,13 @@ class RedisWorkerCommand extends Command
$serviceName = $input->getArgument('serviceName'); $serviceName = $input->getArgument('serviceName');
if (!$this->container->has('wallabag_core.queue.redis.' . $serviceName) || !$this->container->has('wallabag_core.consumer.redis.' . $serviceName)) { if (!$this->container->has('wallabag.queue.redis.' . $serviceName) || !$this->container->has('wallabag.consumer.redis.' . $serviceName)) {
throw new Exception(sprintf('No queue or consumer found for service name: "%s"', $input->getArgument('serviceName'))); throw new Exception(sprintf('No queue or consumer found for service name: "%s"', $input->getArgument('serviceName')));
} }
$worker = new QueueWorker( $worker = new QueueWorker(
$this->container->get('wallabag_core.queue.redis.' . $serviceName), $this->container->get('wallabag.queue.redis.' . $serviceName),
$this->container->get('wallabag_core.consumer.redis.' . $serviceName), $this->container->get('wallabag.consumer.redis.' . $serviceName),
(int) $input->getOption('maxIterations') (int) $input->getOption('maxIterations')
); );

View file

@ -525,7 +525,7 @@ class EntryRestController extends WallabagRestController
$urls = json_decode($request->query->get('urls', [])); $urls = json_decode($request->query->get('urls', []));
$limit = $this->getParameter('wallabag_core.api_limit_mass_actions'); $limit = $this->getParameter('wallabag.api_limit_mass_actions');
if (\count($urls) > $limit) { if (\count($urls) > $limit) {
throw new HttpException(400, 'API limit reached'); throw new HttpException(400, 'API limit reached');
@ -1044,7 +1044,7 @@ class EntryRestController extends WallabagRestController
} }
// if refreshing entry failed, don't save it // if refreshing entry failed, don't save it
if ($this->getParameter('wallabag_core.fetching_error_message') === $entry->getContent()) { if ($this->getParameter('wallabag.fetching_error_message') === $entry->getContent()) {
return new JsonResponse([], 304); return new JsonResponse([], 304);
} }

View file

@ -61,7 +61,7 @@ class WallabagRestController extends AbstractFOSRestController
*/ */
public function getVersionAction() public function getVersionAction()
{ {
$version = $this->getParameter('wallabag_core.version'); $version = $this->getParameter('wallabag.version');
$json = $this->serializer->serialize($version, 'json'); $json = $this->serializer->serialize($version, 'json');
return (new JsonResponse())->setJson($json); return (new JsonResponse())->setJson($json);
@ -85,7 +85,7 @@ class WallabagRestController extends AbstractFOSRestController
public function getInfoAction(Config $craueConfig) public function getInfoAction(Config $craueConfig)
{ {
$info = new ApplicationInfo( $info = new ApplicationInfo(
$this->getParameter('wallabag_core.version'), $this->getParameter('wallabag.version'),
$this->getParameter('fosuser_registration') && $craueConfig->get('api_user_registration'), $this->getParameter('fosuser_registration') && $craueConfig->get('api_user_registration'),
); );

View file

@ -410,7 +410,7 @@ class EntryController extends AbstractController
$this->updateEntry($entry, 'entry_reloaded'); $this->updateEntry($entry, 'entry_reloaded');
// if refreshing entry failed, don't save it // if refreshing entry failed, don't save it
if ($this->getParameter('wallabag_core.fetching_error_message') === $entry->getContent()) { if ($this->getParameter('wallabag.fetching_error_message') === $entry->getContent()) {
$this->addFlash('notice', 'flashes.entry.notice.entry_reloaded_failed'); $this->addFlash('notice', 'flashes.entry.notice.entry_reloaded_failed');
return $this->redirect($this->generateUrl('view', ['id' => $entry->getId()])); return $this->redirect($this->generateUrl('view', ['id' => $entry->getId()]));

View file

@ -128,7 +128,7 @@ class FeedController extends AbstractController
$user $user
); );
$perPage = $user->getConfig()->getFeedLimit() ?: $this->getParameter('wallabag_core.feed_limit'); $perPage = $user->getConfig()->getFeedLimit() ?: $this->getParameter('wallabag.feed_limit');
$entries->setMaxPerPage($perPage); $entries->setMaxPerPage($perPage);
if (null === $entries) { if (null === $entries) {
@ -151,7 +151,7 @@ class FeedController extends AbstractController
'entries' => $entries, 'entries' => $entries,
'user' => $user->getUsername(), 'user' => $user->getUsername(),
'domainName' => $this->getParameter('domain_name'), 'domainName' => $this->getParameter('domain_name'),
'version' => $this->getParameter('wallabag_core.version'), 'version' => $this->getParameter('wallabag.version'),
'tag' => $tag->getSlug(), 'tag' => $tag->getSlug(),
'updated' => $this->prepareFeedUpdatedDate($entries, $sort), 'updated' => $this->prepareFeedUpdatedDate($entries, $sort),
], ],
@ -206,7 +206,7 @@ class FeedController extends AbstractController
$pagerAdapter = new DoctrineORMAdapter($qb->getQuery(), true, false); $pagerAdapter = new DoctrineORMAdapter($qb->getQuery(), true, false);
$entries = new Pagerfanta($pagerAdapter); $entries = new Pagerfanta($pagerAdapter);
$perPage = $user->getConfig()->getFeedLimit() ?: $this->getParameter('wallabag_core.feed_limit'); $perPage = $user->getConfig()->getFeedLimit() ?: $this->getParameter('wallabag.feed_limit');
$entries->setMaxPerPage($perPage); $entries->setMaxPerPage($perPage);
$url = $this->generateUrl( $url = $this->generateUrl(
@ -232,7 +232,7 @@ class FeedController extends AbstractController
'entries' => $entries, 'entries' => $entries,
'user' => $user->getUsername(), 'user' => $user->getUsername(),
'domainName' => $this->getParameter('domain_name'), 'domainName' => $this->getParameter('domain_name'),
'version' => $this->getParameter('wallabag_core.version'), 'version' => $this->getParameter('wallabag.version'),
'updated' => $this->prepareFeedUpdatedDate($entries), 'updated' => $this->prepareFeedUpdatedDate($entries),
], new Response('', 200, ['Content-Type' => 'application/atom+xml'])); ], new Response('', 200, ['Content-Type' => 'application/atom+xml']));
} }

View file

@ -30,9 +30,9 @@ abstract class BrowserController extends AbstractController
$markAsRead = $form->get('mark_as_read')->getData(); $markAsRead = $form->get('mark_as_read')->getData();
$name = $this->getUser()->getId() . '.json'; $name = $this->getUser()->getId() . '.json';
if (null !== $file && \in_array($file->getClientMimeType(), $this->getParameter('wallabag_core.allow_mimetypes'), true) && $file->move($this->getParameter('wallabag_core.resource_dir'), $name)) { if (null !== $file && \in_array($file->getClientMimeType(), $this->getParameter('wallabag.allow_mimetypes'), true) && $file->move($this->getParameter('wallabag.resource_dir'), $name)) {
$res = $wallabag $res = $wallabag
->setFilepath($this->getParameter('wallabag_core.resource_dir') . '/' . $name) ->setFilepath($this->getParameter('wallabag.resource_dir') . '/' . $name)
->setMarkAsRead($markAsRead) ->setMarkAsRead($markAsRead)
->import(); ->import();
@ -51,7 +51,7 @@ abstract class BrowserController extends AbstractController
]); ]);
} }
unlink($this->getParameter('wallabag_core.resource_dir') . '/' . $name); unlink($this->getParameter('wallabag.resource_dir') . '/' . $name);
} }
$this->addFlash('notice', $message); $this->addFlash('notice', $message);

View file

@ -44,9 +44,9 @@ class DeliciousController extends AbstractController
$markAsRead = $form->get('mark_as_read')->getData(); $markAsRead = $form->get('mark_as_read')->getData();
$name = 'delicious_' . $this->getUser()->getId() . '.json'; $name = 'delicious_' . $this->getUser()->getId() . '.json';
if (null !== $file && \in_array($file->getClientMimeType(), $this->getParameter('wallabag_core.allow_mimetypes'), true) && $file->move($this->getParameter('wallabag_core.resource_dir'), $name)) { if (null !== $file && \in_array($file->getClientMimeType(), $this->getParameter('wallabag.allow_mimetypes'), true) && $file->move($this->getParameter('wallabag.resource_dir'), $name)) {
$res = $delicious $res = $delicious
->setFilepath($this->getParameter('wallabag_core.resource_dir') . '/' . $name) ->setFilepath($this->getParameter('wallabag.resource_dir') . '/' . $name)
->setMarkAsRead($markAsRead) ->setMarkAsRead($markAsRead)
->import(); ->import();
@ -65,7 +65,7 @@ class DeliciousController extends AbstractController
]); ]);
} }
unlink($this->getParameter('wallabag_core.resource_dir') . '/' . $name); unlink($this->getParameter('wallabag.resource_dir') . '/' . $name);
} }
$this->addFlash('notice', $message); $this->addFlash('notice', $message);

View file

@ -30,9 +30,9 @@ abstract class HtmlController extends AbstractController
$markAsRead = $form->get('mark_as_read')->getData(); $markAsRead = $form->get('mark_as_read')->getData();
$name = $this->getUser()->getId() . '.html'; $name = $this->getUser()->getId() . '.html';
if (null !== $file && \in_array($file->getClientMimeType(), $this->getParameter('wallabag_core.allow_mimetypes'), true) && $file->move($this->getParameter('wallabag_core.resource_dir'), $name)) { if (null !== $file && \in_array($file->getClientMimeType(), $this->getParameter('wallabag.allow_mimetypes'), true) && $file->move($this->getParameter('wallabag.resource_dir'), $name)) {
$res = $wallabag $res = $wallabag
->setFilepath($this->getParameter('wallabag_core.resource_dir') . '/' . $name) ->setFilepath($this->getParameter('wallabag.resource_dir') . '/' . $name)
->setMarkAsRead($markAsRead) ->setMarkAsRead($markAsRead)
->import(); ->import();
@ -51,7 +51,7 @@ abstract class HtmlController extends AbstractController
]); ]);
} }
unlink($this->getParameter('wallabag_core.resource_dir') . '/' . $name); unlink($this->getParameter('wallabag.resource_dir') . '/' . $name);
} }
$this->addFlash('notice', $message); $this->addFlash('notice', $message);

View file

@ -44,9 +44,9 @@ class InstapaperController extends AbstractController
$markAsRead = $form->get('mark_as_read')->getData(); $markAsRead = $form->get('mark_as_read')->getData();
$name = 'instapaper_' . $this->getUser()->getId() . '.csv'; $name = 'instapaper_' . $this->getUser()->getId() . '.csv';
if (null !== $file && \in_array($file->getClientMimeType(), $this->getParameter('wallabag_core.allow_mimetypes'), true) && $file->move($this->getParameter('wallabag_core.resource_dir'), $name)) { if (null !== $file && \in_array($file->getClientMimeType(), $this->getParameter('wallabag.allow_mimetypes'), true) && $file->move($this->getParameter('wallabag.resource_dir'), $name)) {
$res = $instapaper $res = $instapaper
->setFilepath($this->getParameter('wallabag_core.resource_dir') . '/' . $name) ->setFilepath($this->getParameter('wallabag.resource_dir') . '/' . $name)
->setMarkAsRead($markAsRead) ->setMarkAsRead($markAsRead)
->import(); ->import();
@ -65,7 +65,7 @@ class InstapaperController extends AbstractController
]); ]);
} }
unlink($this->getParameter('wallabag_core.resource_dir') . '/' . $name); unlink($this->getParameter('wallabag.resource_dir') . '/' . $name);
} }
$this->addFlash('notice', $message); $this->addFlash('notice', $message);

View file

@ -44,9 +44,9 @@ class PinboardController extends AbstractController
$markAsRead = $form->get('mark_as_read')->getData(); $markAsRead = $form->get('mark_as_read')->getData();
$name = 'pinboard_' . $this->getUser()->getId() . '.json'; $name = 'pinboard_' . $this->getUser()->getId() . '.json';
if (null !== $file && \in_array($file->getClientMimeType(), $this->getParameter('wallabag_core.allow_mimetypes'), true) && $file->move($this->getParameter('wallabag_core.resource_dir'), $name)) { if (null !== $file && \in_array($file->getClientMimeType(), $this->getParameter('wallabag.allow_mimetypes'), true) && $file->move($this->getParameter('wallabag.resource_dir'), $name)) {
$res = $pinboard $res = $pinboard
->setFilepath($this->getParameter('wallabag_core.resource_dir') . '/' . $name) ->setFilepath($this->getParameter('wallabag.resource_dir') . '/' . $name)
->setMarkAsRead($markAsRead) ->setMarkAsRead($markAsRead)
->import(); ->import();
@ -65,7 +65,7 @@ class PinboardController extends AbstractController
]); ]);
} }
unlink($this->getParameter('wallabag_core.resource_dir') . '/' . $name); unlink($this->getParameter('wallabag.resource_dir') . '/' . $name);
} }
$this->addFlash('notice', $message); $this->addFlash('notice', $message);

View file

@ -44,9 +44,9 @@ class ReadabilityController extends AbstractController
$markAsRead = $form->get('mark_as_read')->getData(); $markAsRead = $form->get('mark_as_read')->getData();
$name = 'readability_' . $this->getUser()->getId() . '.json'; $name = 'readability_' . $this->getUser()->getId() . '.json';
if (null !== $file && \in_array($file->getClientMimeType(), $this->getParameter('wallabag_core.allow_mimetypes'), true) && $file->move($this->getParameter('wallabag_core.resource_dir'), $name)) { if (null !== $file && \in_array($file->getClientMimeType(), $this->getParameter('wallabag.allow_mimetypes'), true) && $file->move($this->getParameter('wallabag.resource_dir'), $name)) {
$res = $readability $res = $readability
->setFilepath($this->getParameter('wallabag_core.resource_dir') . '/' . $name) ->setFilepath($this->getParameter('wallabag.resource_dir') . '/' . $name)
->setMarkAsRead($markAsRead) ->setMarkAsRead($markAsRead)
->import(); ->import();
@ -65,7 +65,7 @@ class ReadabilityController extends AbstractController
]); ]);
} }
unlink($this->getParameter('wallabag_core.resource_dir') . '/' . $name); unlink($this->getParameter('wallabag.resource_dir') . '/' . $name);
} }
$this->addFlash('notice', $message); $this->addFlash('notice', $message);

View file

@ -33,9 +33,9 @@ abstract class WallabagController extends AbstractController
$markAsRead = $form->get('mark_as_read')->getData(); $markAsRead = $form->get('mark_as_read')->getData();
$name = $this->getUser()->getId() . '.json'; $name = $this->getUser()->getId() . '.json';
if (null !== $file && \in_array($file->getClientMimeType(), $this->getParameter('wallabag_core.allow_mimetypes'), true) && $file->move($this->getParameter('wallabag_core.resource_dir'), $name)) { if (null !== $file && \in_array($file->getClientMimeType(), $this->getParameter('wallabag.allow_mimetypes'), true) && $file->move($this->getParameter('wallabag.resource_dir'), $name)) {
$res = $wallabag $res = $wallabag
->setFilepath($this->getParameter('wallabag_core.resource_dir') . '/' . $name) ->setFilepath($this->getParameter('wallabag.resource_dir') . '/' . $name)
->setMarkAsRead($markAsRead) ->setMarkAsRead($markAsRead)
->import(); ->import();
@ -54,7 +54,7 @@ abstract class WallabagController extends AbstractController
]); ]);
} }
unlink($this->getParameter('wallabag_core.resource_dir') . '/' . $name); unlink($this->getParameter('wallabag.resource_dir') . '/' . $name);
} }
$this->addFlash('notice', $message); $this->addFlash('notice', $message);

View file

@ -29,8 +29,8 @@ class StaticController extends AbstractController
return $this->render( return $this->render(
'Static/about.html.twig', 'Static/about.html.twig',
[ [
'version' => $this->getParameter('wallabag_core.version'), 'version' => $this->getParameter('wallabag.version'),
'paypal_url' => $this->getParameter('wallabag_core.paypal_url'), 'paypal_url' => $this->getParameter('wallabag.paypal_url'),
] ]
); );
} }

View file

@ -22,7 +22,7 @@ class IgnoreOriginInstanceRuleFixtures extends Fixture implements ContainerAware
public function load(ObjectManager $manager): void public function load(ObjectManager $manager): void
{ {
foreach ($this->container->getParameter('wallabag_core.default_ignore_origin_instance_rules') as $ignore_origin_instance_rule) { foreach ($this->container->getParameter('wallabag.default_ignore_origin_instance_rules') as $ignore_origin_instance_rule) {
$newIgnoreOriginInstanceRule = new IgnoreOriginInstanceRule(); $newIgnoreOriginInstanceRule = new IgnoreOriginInstanceRule();
$newIgnoreOriginInstanceRule->setRule($ignore_origin_instance_rule['rule']); $newIgnoreOriginInstanceRule->setRule($ignore_origin_instance_rule['rule']);
$manager->persist($newIgnoreOriginInstanceRule); $manager->persist($newIgnoreOriginInstanceRule);

View file

@ -22,7 +22,7 @@ class InternalSettingFixtures extends Fixture implements ContainerAwareInterface
public function load(ObjectManager $manager): void public function load(ObjectManager $manager): void
{ {
foreach ($this->container->getParameter('wallabag_core.default_internal_settings') as $setting) { foreach ($this->container->getParameter('wallabag.default_internal_settings') as $setting) {
$newSetting = new InternalSetting(); $newSetting = new InternalSetting();
$newSetting->setName($setting['name']); $newSetting->setName($setting['name']);
$newSetting->setValue($setting['value']); $newSetting->setValue($setting['value']);

View file

@ -19,7 +19,7 @@ class ImportCompilerPass implements CompilerPassInterface
); );
$taggedServices = $container->findTaggedServiceIds( $taggedServices = $container->findTaggedServiceIds(
'wallabag_core.import' 'wallabag.import'
); );
foreach ($taggedServices as $id => $tagAttributes) { foreach ($taggedServices as $id => $tagAttributes) {
foreach ($tagAttributes as $attributes) { foreach ($tagAttributes as $attributes) {

View file

@ -82,7 +82,7 @@ class ReloadEntryCommandTest extends WallabagCoreTestCase
$reloadedEntries = $this->getTestClient() $reloadedEntries = $this->getTestClient()
->getContainer() ->getContainer()
->get('wallabag_core.entry_repository.test') ->get('wallabag.entry_repository.test')
->findById([$this->adminEntry->getId(), $this->bobEntry->getId()]); ->findById([$this->adminEntry->getId(), $this->bobEntry->getId()]);
foreach ($reloadedEntries as $reloadedEntry) { foreach ($reloadedEntries as $reloadedEntry) {
@ -107,7 +107,7 @@ class ReloadEntryCommandTest extends WallabagCoreTestCase
'interactive' => false, 'interactive' => false,
]); ]);
$entryRepository = $this->getTestClient()->getContainer()->get('wallabag_core.entry_repository.test'); $entryRepository = $this->getTestClient()->getContainer()->get('wallabag.entry_repository.test');
$reloadedAdminEntry = $entryRepository->find($this->adminEntry->getId()); $reloadedAdminEntry = $entryRepository->find($this->adminEntry->getId());
$this->assertNotEmpty($reloadedAdminEntry->getContent()); $this->assertNotEmpty($reloadedAdminEntry->getContent());
@ -128,7 +128,7 @@ class ReloadEntryCommandTest extends WallabagCoreTestCase
'--only-not-parsed' => true, '--only-not-parsed' => true,
]); ]);
$entryRepository = $this->getTestClient()->getContainer()->get('wallabag_core.entry_repository.test'); $entryRepository = $this->getTestClient()->getContainer()->get('wallabag.entry_repository.test');
$reloadedBobParsedEntry = $entryRepository->find($this->bobParsedEntry->getId()); $reloadedBobParsedEntry = $entryRepository->find($this->bobParsedEntry->getId());
$this->assertEmpty($reloadedBobParsedEntry->getContent()); $this->assertEmpty($reloadedBobParsedEntry->getContent());

View file

@ -16,7 +16,7 @@ class WallabagRestControllerTest extends WallabagApiTestCase
$content = json_decode($client->getResponse()->getContent(), true); $content = json_decode($client->getResponse()->getContent(), true);
$this->assertSame($client->getContainer()->getParameter('wallabag_core.version'), $content); $this->assertSame($client->getContainer()->getParameter('wallabag.version'), $content);
} }
public function testGetInfo() public function testGetInfo()

View file

@ -541,7 +541,7 @@ class EntryControllerTest extends WallabagCoreTestCase
->getRepository(Entry::class) ->getRepository(Entry::class)
->find($entry->getId()); ->find($entry->getId());
$this->assertNotSame($client->getContainer()->getParameter('wallabag_core.fetching_error_message'), $newContent->getContent()); $this->assertNotSame($client->getContainer()->getParameter('wallabag.fetching_error_message'), $newContent->getContent());
} }
public function testEdit() public function testEdit()

View file

@ -27,7 +27,7 @@ class ImportCompilerPassTest extends TestCase
$container $container
->register('foo') ->register('foo')
->addTag('wallabag_core.import', ['alias' => 'pocket']) ->addTag('wallabag.import', ['alias' => 'pocket'])
; ;
$this->process($container); $this->process($container);