diff --git a/app/config/config.yml b/app/config/config.yml index 57e1e84a8..3cf6a565e 100644 --- a/app/config/config.yml +++ b/app/config/config.yml @@ -39,7 +39,7 @@ twig: debug: "%kernel.debug%" strict_variables: "%kernel.debug%" form_themes: - - "LexikFormFilterBundle:Form:form_div_layout.html.twig" + - "@LexikFormFilter/Form/form_div_layout.html.twig" exception_controller: Wallabag\CoreBundle\Controller\ExceptionController:showAction globals: registration_enabled: '%fosuser_registration%' @@ -212,13 +212,13 @@ scheb_two_factor: google: enabled: "%twofactor_auth%" issuer: "%server_name%" - template: WallabagUserBundle:Authentication:form.html.twig + template: "@WallabagUser/Authentication/form.html.twig" email: enabled: "%twofactor_auth%" sender_email: "%twofactor_sender%" digits: 6 - template: WallabagUserBundle:Authentication:form.html.twig + template: "@WallabagUser/Authentication/form.html.twig" mailer: Wallabag\UserBundle\Mailer\AuthCodeMailer kphoen_rulerz: diff --git a/src/Wallabag/CoreBundle/Controller/ConfigController.php b/src/Wallabag/CoreBundle/Controller/ConfigController.php index 80e69a8f6..f535df917 100644 --- a/src/Wallabag/CoreBundle/Controller/ConfigController.php +++ b/src/Wallabag/CoreBundle/Controller/ConfigController.php @@ -223,7 +223,7 @@ class ConfigController extends Controller return $this->redirect($this->generateUrl('config') . '#set6'); } - return $this->render('WallabagCoreBundle:Config:index.html.twig', [ + return $this->render('@WallabagCore/Config/index.html.twig', [ 'form' => [ 'config' => $configForm->createView(), 'feed' => $feedForm->createView(), @@ -354,7 +354,7 @@ class ConfigController extends Controller 'flashes.config.notice.otp_enabled' ); - return $this->render('WallabagCoreBundle:Config:otp_app.html.twig', [ + return $this->render('@WallabagCore/Config/otp_app.html.twig', [ 'backupCodes' => $backupCodes, 'qr_code' => $this->get('scheb_two_factor.security.google_authenticator')->getQRContent($user), 'secret' => $secret, diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php index fa26f35c0..b4674a580 100644 --- a/src/Wallabag/CoreBundle/Controller/EntryController.php +++ b/src/Wallabag/CoreBundle/Controller/EntryController.php @@ -133,7 +133,7 @@ class EntryController extends Controller return $this->showEntries('search', $request, $page); } - return $this->render('WallabagCoreBundle:Entry:search_form.html.twig', [ + return $this->render('@WallabagCore/Entry/search_form.html.twig', [ 'form' => $form->createView(), 'currentRoute' => $currentRoute, ]); @@ -176,7 +176,7 @@ class EntryController extends Controller return $this->redirect($this->generateUrl('homepage')); } - return $this->render('WallabagCoreBundle:Entry:new_form.html.twig', [ + return $this->render('@WallabagCore/Entry/new_form.html.twig', [ 'form' => $form->createView(), ]); } @@ -212,7 +212,7 @@ class EntryController extends Controller */ public function addEntryAction() { - return $this->render('WallabagCoreBundle:Entry:new.html.twig'); + return $this->render('@WallabagCore/Entry/new.html.twig'); } /** @@ -243,7 +243,7 @@ class EntryController extends Controller return $this->redirect($this->generateUrl('view', ['id' => $entry->getId()])); } - return $this->render('WallabagCoreBundle:Entry:edit.html.twig', [ + return $this->render('@WallabagCore/Entry/edit.html.twig', [ 'form' => $form->createView(), ]); } @@ -374,7 +374,7 @@ class EntryController extends Controller $this->checkUserAction($entry); return $this->render( - 'WallabagCoreBundle:Entry:entry.html.twig', + '@WallabagCore/Entry/entry.html.twig', ['entry' => $entry] ); } @@ -666,7 +666,7 @@ class EntryController extends Controller ->countUntaggedEntriesByUser($this->getUser()->getId()); return $this->render( - 'WallabagCoreBundle:Entry:entries.html.twig', [ + '@WallabagCore/Entry/entries.html.twig', [ 'form' => $form->createView(), 'entries' => $entries, 'currentPage' => $page, diff --git a/src/Wallabag/CoreBundle/Controller/ExceptionController.php b/src/Wallabag/CoreBundle/Controller/ExceptionController.php index 461309ea9..ffff3c85f 100644 --- a/src/Wallabag/CoreBundle/Controller/ExceptionController.php +++ b/src/Wallabag/CoreBundle/Controller/ExceptionController.php @@ -20,7 +20,7 @@ class ExceptionController extends BaseExceptionController // For error pages, try to find a template for the specific HTTP status code and format if (!$showException) { - $template = sprintf('WallabagCoreBundle:Exception:%s.%s.twig', $name, $format); + $template = sprintf('@WallabagCore/Exception/%s.%s.twig', $name, $format); if ($this->templateExists($template)) { return $template; } diff --git a/src/Wallabag/CoreBundle/Controller/IgnoreOriginInstanceRuleController.php b/src/Wallabag/CoreBundle/Controller/IgnoreOriginInstanceRuleController.php index 7cc1a59ab..23e31d993 100644 --- a/src/Wallabag/CoreBundle/Controller/IgnoreOriginInstanceRuleController.php +++ b/src/Wallabag/CoreBundle/Controller/IgnoreOriginInstanceRuleController.php @@ -24,7 +24,7 @@ class IgnoreOriginInstanceRuleController extends Controller { $rules = $this->get(IgnoreOriginInstanceRuleRepository::class)->findAll(); - return $this->render('WallabagCoreBundle:IgnoreOriginInstanceRule:index.html.twig', [ + return $this->render('@WallabagCore/IgnoreOriginInstanceRule/index.html.twig', [ 'rules' => $rules, ]); } @@ -56,7 +56,7 @@ class IgnoreOriginInstanceRuleController extends Controller return $this->redirectToRoute('ignore_origin_instance_rules_index'); } - return $this->render('WallabagCoreBundle:IgnoreOriginInstanceRule:new.html.twig', [ + return $this->render('@WallabagCore/IgnoreOriginInstanceRule/new.html.twig', [ 'rule' => $ignoreOriginInstanceRule, 'form' => $form->createView(), ]); @@ -88,7 +88,7 @@ class IgnoreOriginInstanceRuleController extends Controller return $this->redirectToRoute('ignore_origin_instance_rules_index'); } - return $this->render('WallabagCoreBundle:IgnoreOriginInstanceRule:edit.html.twig', [ + return $this->render('@WallabagCore/IgnoreOriginInstanceRule/edit.html.twig', [ 'rule' => $ignoreOriginInstanceRule, 'edit_form' => $editForm->createView(), 'delete_form' => $deleteForm->createView(), diff --git a/src/Wallabag/CoreBundle/Controller/SiteCredentialController.php b/src/Wallabag/CoreBundle/Controller/SiteCredentialController.php index cf94729da..dc442441f 100644 --- a/src/Wallabag/CoreBundle/Controller/SiteCredentialController.php +++ b/src/Wallabag/CoreBundle/Controller/SiteCredentialController.php @@ -28,7 +28,7 @@ class SiteCredentialController extends Controller $credentials = $this->get(SiteCredentialRepository::class)->findByUser($this->getUser()); - return $this->render('WallabagCoreBundle:SiteCredential:index.html.twig', [ + return $this->render('@WallabagCore/SiteCredential/index.html.twig', [ 'credentials' => $credentials, ]); } @@ -65,7 +65,7 @@ class SiteCredentialController extends Controller return $this->redirectToRoute('site_credentials_index'); } - return $this->render('WallabagCoreBundle:SiteCredential:new.html.twig', [ + return $this->render('@WallabagCore/SiteCredential/new.html.twig', [ 'credential' => $credential, 'form' => $form->createView(), ]); @@ -104,7 +104,7 @@ class SiteCredentialController extends Controller return $this->redirectToRoute('site_credentials_index'); } - return $this->render('WallabagCoreBundle:SiteCredential:edit.html.twig', [ + return $this->render('@WallabagCore/SiteCredential/edit.html.twig', [ 'credential' => $siteCredential, 'edit_form' => $editForm->createView(), 'delete_form' => $deleteForm->createView(), diff --git a/src/Wallabag/CoreBundle/Controller/TagController.php b/src/Wallabag/CoreBundle/Controller/TagController.php index c8664c94b..c7d1ef9d9 100644 --- a/src/Wallabag/CoreBundle/Controller/TagController.php +++ b/src/Wallabag/CoreBundle/Controller/TagController.php @@ -49,7 +49,7 @@ class TagController extends Controller return $this->redirect($this->generateUrl('view', ['id' => $entry->getId()])); } - return $this->render('WallabagCoreBundle:Tag:new_form.html.twig', [ + return $this->render('@WallabagCore/Tag/new_form.html.twig', [ 'form' => $form->createView(), 'entry' => $entry, ]); @@ -98,7 +98,7 @@ class TagController extends Controller $renameForms[$tag['id']] = $this->createForm(RenameTagType::class, new Tag())->createView(); } - return $this->render('WallabagCoreBundle:Tag:tags.html.twig', [ + return $this->render('@WallabagCore/Tag/tags.html.twig', [ 'tags' => $tags, 'renameForms' => $renameForms, 'nbEntriesUntagged' => $nbEntriesUntagged, @@ -135,7 +135,7 @@ class TagController extends Controller } } - return $this->render('WallabagCoreBundle:Entry:entries.html.twig', [ + return $this->render('@WallabagCore/Entry/entries.html.twig', [ 'form' => null, 'entries' => $entries, 'currentPage' => $page, diff --git a/src/Wallabag/ImportBundle/Controller/ChromeController.php b/src/Wallabag/ImportBundle/Controller/ChromeController.php index 453edb55a..213728356 100644 --- a/src/Wallabag/ImportBundle/Controller/ChromeController.php +++ b/src/Wallabag/ImportBundle/Controller/ChromeController.php @@ -37,6 +37,6 @@ class ChromeController extends BrowserController */ protected function getImportTemplate() { - return 'WallabagImportBundle:Chrome:index.html.twig'; + return '@WallabagImport/Chrome/index.html.twig'; } } diff --git a/src/Wallabag/ImportBundle/Controller/DeliciousController.php b/src/Wallabag/ImportBundle/Controller/DeliciousController.php index b601baeeb..79247b5c0 100644 --- a/src/Wallabag/ImportBundle/Controller/DeliciousController.php +++ b/src/Wallabag/ImportBundle/Controller/DeliciousController.php @@ -70,7 +70,7 @@ class DeliciousController extends Controller ); } - return $this->render('WallabagImportBundle:Delicious:index.html.twig', [ + return $this->render('@WallabagImport/Delicious/index.html.twig', [ 'form' => $form->createView(), 'import' => $delicious, ]); diff --git a/src/Wallabag/ImportBundle/Controller/ElcuratorController.php b/src/Wallabag/ImportBundle/Controller/ElcuratorController.php index 6c2e727ae..5048d65e4 100644 --- a/src/Wallabag/ImportBundle/Controller/ElcuratorController.php +++ b/src/Wallabag/ImportBundle/Controller/ElcuratorController.php @@ -37,6 +37,6 @@ class ElcuratorController extends WallabagController */ protected function getImportTemplate() { - return 'WallabagImportBundle:Elcurator:index.html.twig'; + return '@WallabagImport/Elcurator/index.html.twig'; } } diff --git a/src/Wallabag/ImportBundle/Controller/FirefoxController.php b/src/Wallabag/ImportBundle/Controller/FirefoxController.php index a2cdc2307..4cf93ed2f 100644 --- a/src/Wallabag/ImportBundle/Controller/FirefoxController.php +++ b/src/Wallabag/ImportBundle/Controller/FirefoxController.php @@ -37,6 +37,6 @@ class FirefoxController extends BrowserController */ protected function getImportTemplate() { - return 'WallabagImportBundle:Firefox:index.html.twig'; + return '@WallabagImport/Firefox/index.html.twig'; } } diff --git a/src/Wallabag/ImportBundle/Controller/ImportController.php b/src/Wallabag/ImportBundle/Controller/ImportController.php index e823be519..dabe6b76a 100644 --- a/src/Wallabag/ImportBundle/Controller/ImportController.php +++ b/src/Wallabag/ImportBundle/Controller/ImportController.php @@ -14,7 +14,7 @@ class ImportController extends Controller */ public function importAction() { - return $this->render('WallabagImportBundle:Import:index.html.twig', [ + return $this->render('@WallabagImport/Import/index.html.twig', [ 'imports' => $this->get(ImportChain::class)->getAll(), ]); } @@ -31,7 +31,7 @@ class ImportController extends Controller $rabbitNotInstalled = false; if (!$this->get('security.authorization_checker')->isGranted('ROLE_SUPER_ADMIN')) { - return $this->render('WallabagImportBundle:Import:check_queue.html.twig'); + return $this->render('@WallabagImport/Import/check_queue.html.twig'); } if ($this->get('craue_config')->get('import_with_rabbitmq')) { @@ -71,7 +71,7 @@ class ImportController extends Controller } } - return $this->render('WallabagImportBundle:Import:check_queue.html.twig', [ + return $this->render('@WallabagImport/Import/check_queue.html.twig', [ 'nbRedisMessages' => $nbRedisMessages, 'nbRabbitMessages' => $nbRabbitMessages, 'redisNotInstalled' => $redisNotInstalled, diff --git a/src/Wallabag/ImportBundle/Controller/InstapaperController.php b/src/Wallabag/ImportBundle/Controller/InstapaperController.php index a92693169..9c9cede65 100644 --- a/src/Wallabag/ImportBundle/Controller/InstapaperController.php +++ b/src/Wallabag/ImportBundle/Controller/InstapaperController.php @@ -70,7 +70,7 @@ class InstapaperController extends Controller ); } - return $this->render('WallabagImportBundle:Instapaper:index.html.twig', [ + return $this->render('@WallabagImport/Instapaper/index.html.twig', [ 'form' => $form->createView(), 'import' => $instapaper, ]); diff --git a/src/Wallabag/ImportBundle/Controller/PinboardController.php b/src/Wallabag/ImportBundle/Controller/PinboardController.php index f9d21b50e..c639f387a 100644 --- a/src/Wallabag/ImportBundle/Controller/PinboardController.php +++ b/src/Wallabag/ImportBundle/Controller/PinboardController.php @@ -70,7 +70,7 @@ class PinboardController extends Controller ); } - return $this->render('WallabagImportBundle:Pinboard:index.html.twig', [ + return $this->render('@WallabagImport/Pinboard/index.html.twig', [ 'form' => $form->createView(), 'import' => $pinboard, ]); diff --git a/src/Wallabag/ImportBundle/Controller/PocketController.php b/src/Wallabag/ImportBundle/Controller/PocketController.php index 571dd09b7..7158f5021 100644 --- a/src/Wallabag/ImportBundle/Controller/PocketController.php +++ b/src/Wallabag/ImportBundle/Controller/PocketController.php @@ -24,7 +24,7 @@ class PocketController extends Controller ]) ->getForm(); - return $this->render('WallabagImportBundle:Pocket:index.html.twig', [ + return $this->render('@WallabagImport/Pocket/index.html.twig', [ 'import' => $this->getPocketImportService(), 'has_consumer_key' => '' === trim($this->getUser()->getConfig()->getPocketConsumerKey()) ? false : true, 'form' => $form->createView(), diff --git a/src/Wallabag/ImportBundle/Controller/ReadabilityController.php b/src/Wallabag/ImportBundle/Controller/ReadabilityController.php index c0fd49686..d8b343ae2 100644 --- a/src/Wallabag/ImportBundle/Controller/ReadabilityController.php +++ b/src/Wallabag/ImportBundle/Controller/ReadabilityController.php @@ -70,7 +70,7 @@ class ReadabilityController extends Controller ); } - return $this->render('WallabagImportBundle:Readability:index.html.twig', [ + return $this->render('@WallabagImport/Readability/index.html.twig', [ 'form' => $form->createView(), 'import' => $readability, ]); diff --git a/src/Wallabag/ImportBundle/Controller/WallabagV1Controller.php b/src/Wallabag/ImportBundle/Controller/WallabagV1Controller.php index 51e63b988..ddca2175a 100644 --- a/src/Wallabag/ImportBundle/Controller/WallabagV1Controller.php +++ b/src/Wallabag/ImportBundle/Controller/WallabagV1Controller.php @@ -37,6 +37,6 @@ class WallabagV1Controller extends WallabagController */ protected function getImportTemplate() { - return 'WallabagImportBundle:WallabagV1:index.html.twig'; + return '@WallabagImport/WallabagV1/index.html.twig'; } } diff --git a/src/Wallabag/ImportBundle/Controller/WallabagV2Controller.php b/src/Wallabag/ImportBundle/Controller/WallabagV2Controller.php index 139fe681b..14896fa33 100644 --- a/src/Wallabag/ImportBundle/Controller/WallabagV2Controller.php +++ b/src/Wallabag/ImportBundle/Controller/WallabagV2Controller.php @@ -37,6 +37,6 @@ class WallabagV2Controller extends WallabagController */ protected function getImportTemplate() { - return 'WallabagImportBundle:WallabagV2:index.html.twig'; + return '@WallabagImport/WallabagV2/index.html.twig'; } } diff --git a/src/Wallabag/ImportBundle/Resources/views/Chrome/index.html.twig b/src/Wallabag/ImportBundle/Resources/views/Chrome/index.html.twig index 617f33664..331251046 100644 --- a/src/Wallabag/ImportBundle/Resources/views/Chrome/index.html.twig +++ b/src/Wallabag/ImportBundle/Resources/views/Chrome/index.html.twig @@ -6,7 +6,7 @@
- {% include 'WallabagImportBundle:Import:_information.html.twig' %} + {% include '@WallabagImport/Import/_information.html.twig' %}
{{ import.description|trans|raw }}
diff --git a/src/Wallabag/ImportBundle/Resources/views/Delicious/index.html.twig b/src/Wallabag/ImportBundle/Resources/views/Delicious/index.html.twig index 264d8cdc0..8e5741c45 100644 --- a/src/Wallabag/ImportBundle/Resources/views/Delicious/index.html.twig +++ b/src/Wallabag/ImportBundle/Resources/views/Delicious/index.html.twig @@ -6,7 +6,7 @@
- {% include 'WallabagImportBundle:Import:_information.html.twig' %} + {% include '@WallabagImport/Import/_information.html.twig' %}
{{ import.description|trans }}
diff --git a/src/Wallabag/ImportBundle/Resources/views/Elcurator/index.html.twig b/src/Wallabag/ImportBundle/Resources/views/Elcurator/index.html.twig index e3a0d709f..2d950c95c 100644 --- a/src/Wallabag/ImportBundle/Resources/views/Elcurator/index.html.twig +++ b/src/Wallabag/ImportBundle/Resources/views/Elcurator/index.html.twig @@ -1,3 +1,3 @@ -{% extends "WallabagImportBundle:WallabagV1:index.html.twig" %} +{% extends "@WallabagImport/WallabagV1/index.html.twig" %} {% block title %}{{ 'import.elcurator.page_title'|trans }}{% endblock %} diff --git a/src/Wallabag/ImportBundle/Resources/views/Firefox/index.html.twig b/src/Wallabag/ImportBundle/Resources/views/Firefox/index.html.twig index b10f9da57..e262da8a6 100644 --- a/src/Wallabag/ImportBundle/Resources/views/Firefox/index.html.twig +++ b/src/Wallabag/ImportBundle/Resources/views/Firefox/index.html.twig @@ -6,7 +6,7 @@
- {% include 'WallabagImportBundle:Import:_information.html.twig' %} + {% include '@WallabagImport/Import/_information.html.twig' %}
{{ import.description|trans|raw }}
diff --git a/src/Wallabag/ImportBundle/Resources/views/Import/index.html.twig b/src/Wallabag/ImportBundle/Resources/views/Import/index.html.twig index 34c11a067..ee26c84de 100644 --- a/src/Wallabag/ImportBundle/Resources/views/Import/index.html.twig +++ b/src/Wallabag/ImportBundle/Resources/views/Import/index.html.twig @@ -12,7 +12,7 @@
- {% include 'WallabagImportBundle:Import:_information.html.twig' %} + {% include '@WallabagImport/Import/_information.html.twig' %} {{ 'import.page_description'|trans }}
    diff --git a/src/Wallabag/ImportBundle/Resources/views/Instapaper/index.html.twig b/src/Wallabag/ImportBundle/Resources/views/Instapaper/index.html.twig index a92a094d3..38f5eeda6 100644 --- a/src/Wallabag/ImportBundle/Resources/views/Instapaper/index.html.twig +++ b/src/Wallabag/ImportBundle/Resources/views/Instapaper/index.html.twig @@ -6,7 +6,7 @@
    - {% include 'WallabagImportBundle:Import:_information.html.twig' %} + {% include '@WallabagImport/Import/_information.html.twig' %}
    {{ import.description|trans }}
    diff --git a/src/Wallabag/ImportBundle/Resources/views/Pinboard/index.html.twig b/src/Wallabag/ImportBundle/Resources/views/Pinboard/index.html.twig index adc76a521..9c79e088c 100644 --- a/src/Wallabag/ImportBundle/Resources/views/Pinboard/index.html.twig +++ b/src/Wallabag/ImportBundle/Resources/views/Pinboard/index.html.twig @@ -6,7 +6,7 @@
    - {% include 'WallabagImportBundle:Import:_information.html.twig' %} + {% include '@WallabagImport/Import/_information.html.twig' %}
    {{ import.description|trans }}
    diff --git a/src/Wallabag/ImportBundle/Resources/views/Pocket/index.html.twig b/src/Wallabag/ImportBundle/Resources/views/Pocket/index.html.twig index 421b9afbe..781b873e1 100644 --- a/src/Wallabag/ImportBundle/Resources/views/Pocket/index.html.twig +++ b/src/Wallabag/ImportBundle/Resources/views/Pocket/index.html.twig @@ -6,7 +6,7 @@
    - {% include 'WallabagImportBundle:Import:_information.html.twig' %} + {% include '@WallabagImport/Import/_information.html.twig' %} {% if not has_consumer_key %}
    diff --git a/src/Wallabag/ImportBundle/Resources/views/Readability/index.html.twig b/src/Wallabag/ImportBundle/Resources/views/Readability/index.html.twig index dbe368908..70eceb103 100644 --- a/src/Wallabag/ImportBundle/Resources/views/Readability/index.html.twig +++ b/src/Wallabag/ImportBundle/Resources/views/Readability/index.html.twig @@ -6,7 +6,7 @@
    - {% include 'WallabagImportBundle:Import:_information.html.twig' %} + {% include '@WallabagImport/Import/_information.html.twig' %}
    {{ import.description|trans }}
    diff --git a/src/Wallabag/ImportBundle/Resources/views/WallabagV1/index.html.twig b/src/Wallabag/ImportBundle/Resources/views/WallabagV1/index.html.twig index 8eecbb583..6e0598afa 100644 --- a/src/Wallabag/ImportBundle/Resources/views/WallabagV1/index.html.twig +++ b/src/Wallabag/ImportBundle/Resources/views/WallabagV1/index.html.twig @@ -6,7 +6,7 @@
    - {% include 'WallabagImportBundle:Import:_information.html.twig' %} + {% include '@WallabagImport/Import/_information.html.twig' %}
    {{ import.description|trans }}
    diff --git a/src/Wallabag/ImportBundle/Resources/views/WallabagV2/index.html.twig b/src/Wallabag/ImportBundle/Resources/views/WallabagV2/index.html.twig index c2905fc64..2521578c8 100644 --- a/src/Wallabag/ImportBundle/Resources/views/WallabagV2/index.html.twig +++ b/src/Wallabag/ImportBundle/Resources/views/WallabagV2/index.html.twig @@ -1,3 +1,3 @@ -{% extends "WallabagImportBundle:WallabagV1:index.html.twig" %} +{% extends "@WallabagImport/WallabagV1/index.html.twig" %} {% block title %}{{ 'import.wallabag_v2.page_title'|trans }}{% endblock %} diff --git a/src/Wallabag/UserBundle/Controller/ManageController.php b/src/Wallabag/UserBundle/Controller/ManageController.php index 353950667..ecc646a81 100644 --- a/src/Wallabag/UserBundle/Controller/ManageController.php +++ b/src/Wallabag/UserBundle/Controller/ManageController.php @@ -49,7 +49,7 @@ class ManageController extends Controller return $this->redirectToRoute('user_edit', ['id' => $user->getId()]); } - return $this->render('WallabagUserBundle:Manage:new.html.twig', [ + return $this->render('@WallabagUser/Manage/new.html.twig', [ 'user' => $user, 'form' => $form->createView(), ]); @@ -94,7 +94,7 @@ class ManageController extends Controller return $this->redirectToRoute('user_edit', ['id' => $user->getId()]); } - return $this->render('WallabagUserBundle:Manage:edit.html.twig', [ + return $this->render('@WallabagUser/Manage/edit.html.twig', [ 'user' => $user, 'edit_form' => $form->createView(), 'delete_form' => $deleteForm->createView(), @@ -162,7 +162,7 @@ class ManageController extends Controller } } - return $this->render('WallabagUserBundle:Manage:index.html.twig', [ + return $this->render('@WallabagUser/Manage/index.html.twig', [ 'searchForm' => $form->createView(), 'users' => $pagerFanta, ]); diff --git a/src/Wallabag/UserBundle/Mailer/AuthCodeMailer.php b/src/Wallabag/UserBundle/Mailer/AuthCodeMailer.php index 4eea444f2..829e56e5e 100644 --- a/src/Wallabag/UserBundle/Mailer/AuthCodeMailer.php +++ b/src/Wallabag/UserBundle/Mailer/AuthCodeMailer.php @@ -77,7 +77,7 @@ class AuthCodeMailer implements AuthCodeMailerInterface */ public function sendAuthCode(TwoFactorInterface $user): void { - $template = $this->twig->loadTemplate('WallabagUserBundle:TwoFactor:email_auth_code.html.twig'); + $template = $this->twig->loadTemplate('@WallabagUser/TwoFactor/email_auth_code.html.twig'); $subject = $template->renderBlock('subject', []); $bodyHtml = $template->renderBlock('body_html', [ diff --git a/tests/Wallabag/UserBundle/Mailer/AuthCodeMailerTest.php b/tests/Wallabag/UserBundle/Mailer/AuthCodeMailerTest.php index 90248df8f..e1a30749b 100644 --- a/tests/Wallabag/UserBundle/Mailer/AuthCodeMailerTest.php +++ b/tests/Wallabag/UserBundle/Mailer/AuthCodeMailerTest.php @@ -29,7 +29,7 @@ class AuthCodeMailerTest extends TestCase {% block body_text %}text body {{ support_url }}{% endblock %} TWIG; - $this->twig = new Environment(new ArrayLoader(['WallabagUserBundle:TwoFactor:email_auth_code.html.twig' => $twigTemplate])); + $this->twig = new Environment(new ArrayLoader(['@WallabagUser/TwoFactor/email_auth_code.html.twig' => $twigTemplate])); } public function testSendEmail()