diff options
author | Jérémy Benoist <j0k3r@users.noreply.github.com> | 2019-08-08 16:40:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-08 16:40:59 +0200 |
commit | 5d08dd2799a2c20509c0450181990898c62752fd (patch) | |
tree | b4d89e082942e4711b0e0aa1b02102ae3af21a3b /src/Wallabag/CoreBundle/DataFixtures | |
parent | 97c678a0b26d748f9829d732910d5c402c609dc2 (diff) | |
parent | 1576905e0357ef96cd852ea3c1ff4216af195c34 (diff) | |
download | wallabag-5d08dd2799a2c20509c0450181990898c62752fd.tar.gz wallabag-5d08dd2799a2c20509c0450181990898c62752fd.tar.zst wallabag-5d08dd2799a2c20509c0450181990898c62752fd.zip |
Merge pull request #4084 from wallabag/feature/internal-setting
Rename internal settings table
Diffstat (limited to 'src/Wallabag/CoreBundle/DataFixtures')
-rw-r--r-- | src/Wallabag/CoreBundle/DataFixtures/InternalSettingFixtures.php (renamed from src/Wallabag/CoreBundle/DataFixtures/SettingFixtures.php) | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Wallabag/CoreBundle/DataFixtures/SettingFixtures.php b/src/Wallabag/CoreBundle/DataFixtures/InternalSettingFixtures.php index cc7d1f59..b052d1d5 100644 --- a/src/Wallabag/CoreBundle/DataFixtures/SettingFixtures.php +++ b/src/Wallabag/CoreBundle/DataFixtures/InternalSettingFixtures.php | |||
@@ -2,13 +2,13 @@ | |||
2 | 2 | ||
3 | namespace Wallabag\CoreBundle\DataFixtures; | 3 | namespace Wallabag\CoreBundle\DataFixtures; |
4 | 4 | ||
5 | use Craue\ConfigBundle\Entity\Setting; | ||
6 | use Doctrine\Bundle\FixturesBundle\Fixture; | 5 | use Doctrine\Bundle\FixturesBundle\Fixture; |
7 | use Doctrine\Common\Persistence\ObjectManager; | 6 | use Doctrine\Common\Persistence\ObjectManager; |
8 | use Symfony\Component\DependencyInjection\ContainerAwareInterface; | 7 | use Symfony\Component\DependencyInjection\ContainerAwareInterface; |
9 | use Symfony\Component\DependencyInjection\ContainerInterface; | 8 | use Symfony\Component\DependencyInjection\ContainerInterface; |
9 | use Wallabag\CoreBundle\Entity\InternalSetting; | ||
10 | 10 | ||
11 | class SettingFixtures extends Fixture implements ContainerAwareInterface | 11 | class InternalSettingFixtures extends Fixture implements ContainerAwareInterface |
12 | { | 12 | { |
13 | /** | 13 | /** |
14 | * @var ContainerInterface | 14 | * @var ContainerInterface |
@@ -26,7 +26,7 @@ class SettingFixtures extends Fixture implements ContainerAwareInterface | |||
26 | public function load(ObjectManager $manager) | 26 | public function load(ObjectManager $manager) |
27 | { | 27 | { |
28 | foreach ($this->container->getParameter('wallabag_core.default_internal_settings') as $setting) { | 28 | foreach ($this->container->getParameter('wallabag_core.default_internal_settings') as $setting) { |
29 | $newSetting = new Setting(); | 29 | $newSetting = new InternalSetting(); |
30 | $newSetting->setName($setting['name']); | 30 | $newSetting->setName($setting['name']); |
31 | $newSetting->setValue($setting['value']); | 31 | $newSetting->setValue($setting['value']); |
32 | $newSetting->setSection($setting['section']); | 32 | $newSetting->setSection($setting['section']); |