use Symfony\Component\DependencyInjection\ContainerInterface;
/**
- * Add api_user_registration in craue_config_setting.
+ * Remove wallabag_url from craue_config_setting.
+ * It has been moved into the parameters.yml
*/
class Version20170606155640 extends AbstractMigration implements ContainerAwareInterface
{
# with PostgreSQL and SQLite, you must set "utf8"
database_charset: utf8mb4
- domain_name: wallabag.me
+ domain_name: http://your-wallabag-url-instance.com
mailer_transport: smtp
mailer_host: 127.0.0.1
test_database_path: "%env(TEST_DATABASE_PATH)%"
env(TEST_DATABASE_PATH): "%kernel.root_dir%/../data/db/wallabag_test.sqlite"
test_database_charset: utf8
- domain_name: 'http://v2.wallabag.org'
fetching_error_message: |
wallabag can't retrieve contents for this article. Please <a href="http://doc.wallabag.org/en/user/errors_during_fetching.html#how-can-i-help-to-fix-that">troubleshoot this issue</a>.
api_limit_mass_actions: 10
- domain_name: '%domain_name%'
default_internal_settings:
-
name: share_public
->end()
->end()
->end()
- ->scalarNode('domain_name')
- ->end()
->end()
;
$container->setParameter('wallabag_core.fetching_error_message_title', $config['fetching_error_message_title']);
$container->setParameter('wallabag_core.api_limit_mass_actions', $config['api_limit_mass_actions']);
$container->setParameter('wallabag_core.default_internal_settings', $config['default_internal_settings']);
- $container->setParameter('wallabag_core.domain_name', $config['domain_name']);
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.yml');
arguments:
- "@wallabag_core.entry.download_images.client"
- "%kernel.root_dir%/../web/assets/images"
- - '%wallabag_core.domain_name%'
+ - '%domain_name%'
- "@logger"
wallabag_core.entry.download_images.client:
$this->assertEquals($url, $entry->getUrl());
$this->assertContains('Perpignan', $entry->getTitle());
// instead of checking for the filename (which might change) check that the image is now local
- $this->assertContains('http://v2.wallabag.org/assets/images/', $entry->getContent());
+ $this->assertContains('http://your-wallabag-url-instance.com/assets/images/', $entry->getContent());
$client->getContainer()->get('craue_config')->set('download_images_enabled', 0);
}