Skip to content

Commit

Permalink
Migrate remaining places
Browse files Browse the repository at this point in the history
  • Loading branch information
yguedidi committed Aug 26, 2022
1 parent 481283b commit 791b674
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/config/security.yml
Expand Up @@ -9,7 +9,7 @@ security:
providers:
administrators:
entity:
class: WallabagUserBundle:User
class: 'Wallabag\UserBundle\Entity\User'
property: username
fos_userbundle:
id: fos_user.user_provider.username_email
Expand Down
4 changes: 2 additions & 2 deletions src/Wallabag/CoreBundle/Command/InstallCommand.php
Expand Up @@ -277,8 +277,8 @@ protected function setupConfig()
$em = $this->getContainer()->get('doctrine.orm.entity_manager');

// cleanup before insert new stuff
$em->createQuery('DELETE FROM WallabagCoreBundle:InternalSetting')->execute();
$em->createQuery('DELETE FROM WallabagCoreBundle:IgnoreOriginInstanceRule')->execute();
$em->createQuery('DELETE FROM Wallabag\CoreBundle\Entity\InternalSetting')->execute();
$em->createQuery('DELETE FROM Wallabag\CoreBundle\Entity\IgnoreOriginInstanceRule')->execute();

foreach ($this->getContainer()->getParameter('wallabag_core.default_internal_settings') as $setting) {
$newSetting = new InternalSetting();
Expand Down
8 changes: 4 additions & 4 deletions src/Wallabag/CoreBundle/Resources/config/services.yml
Expand Up @@ -123,27 +123,27 @@ services:
class: Wallabag\CoreBundle\Repository\EntryRepository
factory: [ "@doctrine.orm.default_entity_manager", getRepository ]
arguments:
- WallabagCoreBundle:Entry
- 'Wallabag\CoreBundle\Entity\Entry'

Wallabag\CoreBundle\Repository\TagRepository:
class: Wallabag\CoreBundle\Repository\TagRepository
factory: [ "@doctrine.orm.default_entity_manager", getRepository ]
arguments:
- WallabagCoreBundle:Tag
- 'Wallabag\CoreBundle\Entity\Tag'

Wallabag\CoreBundle\Repository\SiteCredentialRepository:
class: Wallabag\CoreBundle\Repository\SiteCredentialRepository
factory: [ "@doctrine.orm.default_entity_manager", getRepository ]
arguments:
- WallabagCoreBundle:SiteCredential
- 'Wallabag\CoreBundle\Entity\SiteCredential'
calls:
- [ setCrypto, [ '@Wallabag\CoreBundle\Helper\CryptoProxy' ] ]

Wallabag\CoreBundle\Repository\IgnoreOriginInstanceRuleRepository:
class: Wallabag\CoreBundle\Repository\IgnoreOriginInstanceRuleRepository
factory: [ "@doctrine.orm.default_entity_manager", getRepository ]
arguments:
- WallabagCoreBundle:IgnoreOriginInstanceRule
- 'Wallabag\CoreBundle\Entity\IgnoreOriginInstanceRule'

Wallabag\CoreBundle\Helper\EntriesExport:
class: Wallabag\CoreBundle\Helper\EntriesExport
Expand Down
2 changes: 1 addition & 1 deletion src/Wallabag/UserBundle/Resources/config/services.yml
Expand Up @@ -27,7 +27,7 @@ services:
class: Wallabag\UserBundle\Repository\UserRepository
factory: [ "@doctrine.orm.default_entity_manager", getRepository ]
arguments:
- WallabagUserBundle:User
- 'Wallabag\UserBundle\Entity\User'

Wallabag\UserBundle\EventListener\CreateConfigListener:
class: Wallabag\UserBundle\EventListener\CreateConfigListener
Expand Down
Expand Up @@ -581,7 +581,7 @@ public function testPostEntryWhenFetchContentFails()
// Remove the created entry to avoid side effects on other tests
if (isset($content['id'])) {
$em = $this->client->getContainer()->get('doctrine.orm.entity_manager');
$entry = $em->getReference('WallabagCoreBundle:Entry', $content['id']);
$entry = $em->getReference(Entry::class, $content['id']);
$em->remove($entry);
$em->flush();
}
Expand Down

0 comments on commit 791b674

Please sign in to comment.