From: Nicolas LÅ“uillet Date: Fri, 23 Jan 2015 15:28:37 +0000 (+0100) Subject: move WallabagBundle into Wallabag:CoreBundle X-Git-Tag: 2.0.0-alpha.0~143 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=ad4d1caa9e744af57ca58a4e57576533eb682d00;hp=b84a80559a1167b5500fbc5eb4965d3b08b371ef;p=github%2Fwallabag%2Fwallabag.git move WallabagBundle into Wallabag:CoreBundle --- diff --git a/app/AppKernel.php b/app/AppKernel.php index 5d159df8..b0a66dad 100644 --- a/app/AppKernel.php +++ b/app/AppKernel.php @@ -17,7 +17,7 @@ class AppKernel extends Kernel new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(), new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(), new AppBundle\AppBundle(), - new WallabagBundle\WallabagBundle(), + new Wallabag\CoreBundle\WallabagCoreBundle(), ); if (in_array($this->getEnvironment(), array('dev', 'test'))) { diff --git a/app/config/routing.yml b/app/config/routing.yml index d0ece8e3..b3c5291a 100644 --- a/app/config/routing.yml +++ b/app/config/routing.yml @@ -1,7 +1,7 @@ app: - resource: @WallabagBundle/Controller/ + resource: @WallabagCoreBundle/Controller/ type: annotation homepage: pattern: / - defaults: { _controller: WallabagBundle:Entry:showUnread } \ No newline at end of file + defaults: { _controller: CoreBundle:Entry:showUnread } \ No newline at end of file diff --git a/src/WallabagBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php similarity index 90% rename from src/WallabagBundle/Controller/EntryController.php rename to src/Wallabag/CoreBundle/Controller/EntryController.php index dc1876fa..2ebb416c 100644 --- a/src/WallabagBundle/Controller/EntryController.php +++ b/src/Wallabag/CoreBundle/Controller/EntryController.php @@ -1,12 +1,12 @@ redirect($this->generateUrl('homepage')); } - return $this->render('WallabagBundle:Entry:new.html.twig', array( + return $this->render('WallabagCoreBundle:Entry:new.html.twig', array( 'form' => $form->createView(), )); } @@ -60,11 +60,11 @@ class EntryController extends Controller */ public function showUnreadAction() { - $repository = $this->getDoctrine()->getRepository('WallabagBundle:Entries'); + $repository = $this->getDoctrine()->getRepository('WallabagCoreBundle:Entries'); $entries = $repository->findUnreadByUser(1, 0); return $this->render( - 'WallabagBundle:Entry:entries.html.twig', + 'WallabagCoreBundle:Entry:entries.html.twig', array('entries' => $entries) ); } @@ -77,11 +77,11 @@ class EntryController extends Controller */ public function showArchiveAction() { - $repository = $this->getDoctrine()->getRepository('WallabagBundle:Entries'); + $repository = $this->getDoctrine()->getRepository('WallabagCoreBundle:Entries'); $entries = $repository->findArchiveByUser(1, 0); return $this->render( - 'WallabagBundle:Entry:entries.html.twig', + 'WallabagCoreBundle:Entry:entries.html.twig', array('entries' => $entries) ); } @@ -94,11 +94,11 @@ class EntryController extends Controller */ public function showStarredAction() { - $repository = $this->getDoctrine()->getRepository('WallabagBundle:Entries'); + $repository = $this->getDoctrine()->getRepository('WallabagCoreBundle:Entries'); $entries = $repository->findStarredByUser(1, 0); return $this->render( - 'WallabagBundle:Entry:entries.html.twig', + 'WallabagCoreBundle:Entry:entries.html.twig', array('entries' => $entries) ); } @@ -113,7 +113,7 @@ class EntryController extends Controller public function viewAction(Entries $entry) { return $this->render( - 'WallabagBundle:Entry:entry.html.twig', + 'WallabagCoreBundle:Entry:entry.html.twig', array('entry' => $entry) ); } diff --git a/src/WallabagBundle/Controller/StaticController.php b/src/Wallabag/CoreBundle/Controller/StaticController.php similarity index 77% rename from src/WallabagBundle/Controller/StaticController.php rename to src/Wallabag/CoreBundle/Controller/StaticController.php index aee2bb7e..0fd19d65 100644 --- a/src/WallabagBundle/Controller/StaticController.php +++ b/src/Wallabag/CoreBundle/Controller/StaticController.php @@ -1,6 +1,6 @@ render( - 'WallabagBundle:Static:about.html.twig', + 'WallabagCoreBundle:Static:about.html.twig', array() ); } diff --git a/src/WallabagBundle/DependencyInjection/WallabagExtension.php b/src/Wallabag/CoreBundle/DependencyInjection/WallabagCoreExtension.php similarity index 79% rename from src/WallabagBundle/DependencyInjection/WallabagExtension.php rename to src/Wallabag/CoreBundle/DependencyInjection/WallabagCoreExtension.php index cfdb21fc..7cc4165e 100644 --- a/src/WallabagBundle/DependencyInjection/WallabagExtension.php +++ b/src/Wallabag/CoreBundle/DependencyInjection/WallabagCoreExtension.php @@ -1,13 +1,13 @@ - + + + + + + diff --git a/src/WallabagBundle/Resources/views/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig similarity index 96% rename from src/WallabagBundle/Resources/views/Entry/entries.html.twig rename to src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig index de343aa2..2f8423d7 100644 --- a/src/WallabagBundle/Resources/views/Entry/entries.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig @@ -1,9 +1,9 @@ -{% extends "WallabagBundle::layout.html.twig" %} +{% extends "WallabagCoreBundle::layout.html.twig" %} {% block title "Unread" %} {% block menu %} - {% include "WallabagBundle::_menu.html.twig" %} + {% include "WallabagCoreBundle::_menu.html.twig" %} {% endblock %} {% block content %} diff --git a/src/WallabagBundle/Resources/views/Entry/entry.html.twig b/src/Wallabag/CoreBundle/Resources/views/Entry/entry.html.twig similarity index 92% rename from src/WallabagBundle/Resources/views/Entry/entry.html.twig rename to src/Wallabag/CoreBundle/Resources/views/Entry/entry.html.twig index 8c08b2ef..78dfa7c0 100644 --- a/src/WallabagBundle/Resources/views/Entry/entry.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/Entry/entry.html.twig @@ -1,9 +1,9 @@ -{% extends "WallabagBundle::layout.html.twig" %} +{% extends "WallabagCoreBundle::layout.html.twig" %} {% block title %}{{ entry.title|raw }} ({{ entry.url | e | domainName }}){% endblock %} {% block menu %} - {% include "WallabagBundle::_menu.html.twig" %} + {% include "WallabagCoreBundle::_menu.html.twig" %} {% endblock %} {% block content %} @@ -21,9 +21,9 @@ {# {% if flattr %}{% if flattr.status == flattrable %}
  • {% trans %}flattr{% endtrans %}
  • {% elseif flattr.status == flattred %}
  • Carrot
  • {% endif %} {% if show_printlink %}
  • {% trans %}Print{% endtrans %}
  • {% endif %} - {% if export_epub %}
  • EPUB
  • {% endif %} - {% if export_mobi %}
  • MOBI
  • {% endif %} - {% if export_pdf %}
  • PDF
  • {% endif %} + {% if export_epub %}
  • EPUB
  • {% endif %} + {% if export_mobi %}
  • MOBI
  • {% endif %} + {% if export_pdf %}
  • PDF
  • {% endif %}
  • {% trans %}Does this article appear wrong?{% endtrans %}
  • diff --git a/src/WallabagBundle/Resources/views/Entry/new.html.twig b/src/Wallabag/CoreBundle/Resources/views/Entry/new.html.twig similarity index 54% rename from src/WallabagBundle/Resources/views/Entry/new.html.twig rename to src/Wallabag/CoreBundle/Resources/views/Entry/new.html.twig index 78da791f..df6926a0 100644 --- a/src/WallabagBundle/Resources/views/Entry/new.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/Entry/new.html.twig @@ -1,9 +1,9 @@ -{% extends "WallabagBundle::layout.html.twig" %} +{% extends "WallabagCoreBundle::layout.html.twig" %} {% block title %}{% trans %}Save new entry{% endtrans %}{% endblock %} {% block menu %} - {% include "WallabagBundle::_menu.html.twig" %} + {% include "WallabagCoreBundle::_menu.html.twig" %} {% endblock %} {% block content %} diff --git a/src/WallabagBundle/Resources/views/Static/about.html.twig b/src/Wallabag/CoreBundle/Resources/views/Static/about.html.twig similarity index 95% rename from src/WallabagBundle/Resources/views/Static/about.html.twig rename to src/Wallabag/CoreBundle/Resources/views/Static/about.html.twig index 752526e1..0585ecca 100755 --- a/src/WallabagBundle/Resources/views/Static/about.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/Static/about.html.twig @@ -1,8 +1,8 @@ -{% extends "WallabagBundle::layout.html.twig" %} +{% extends "WallabagCoreBundle::layout.html.twig" %} {% block title %}{% trans %}About{% endtrans %}{% endblock %} {% block menu %} -{% include "WallabagBundle::_menu.html.twig" %} +{% include "WallabagCoreBundle::_menu.html.twig" %} {% endblock %} {% block content %}

    {% trans %}About wallabag{% endtrans %}

    diff --git a/src/WallabagBundle/Resources/views/_bookmarklet.html.twig b/src/Wallabag/CoreBundle/Resources/views/_bookmarklet.html.twig similarity index 100% rename from src/WallabagBundle/Resources/views/_bookmarklet.html.twig rename to src/Wallabag/CoreBundle/Resources/views/_bookmarklet.html.twig diff --git a/src/WallabagBundle/Resources/views/_footer.html.twig b/src/Wallabag/CoreBundle/Resources/views/_footer.html.twig similarity index 100% rename from src/WallabagBundle/Resources/views/_footer.html.twig rename to src/Wallabag/CoreBundle/Resources/views/_footer.html.twig diff --git a/src/WallabagBundle/Resources/views/_head.html.twig b/src/Wallabag/CoreBundle/Resources/views/_head.html.twig similarity index 100% rename from src/WallabagBundle/Resources/views/_head.html.twig rename to src/Wallabag/CoreBundle/Resources/views/_head.html.twig diff --git a/src/WallabagBundle/Resources/views/_menu.html.twig b/src/Wallabag/CoreBundle/Resources/views/_menu.html.twig similarity index 66% rename from src/WallabagBundle/Resources/views/_menu.html.twig rename to src/Wallabag/CoreBundle/Resources/views/_menu.html.twig index 419a676b..d4560e84 100644 --- a/src/WallabagBundle/Resources/views/_menu.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/_menu.html.twig @@ -3,13 +3,13 @@
  • {% trans %}unread{% endtrans %}
  • {% trans %}favorites{% endtrans %}
  • {% trans %}archive{% endtrans %}
  • -
  • {% trans %}tags{% endtrans %}
  • +
  • {% trans %}tags{% endtrans %}
  • {% trans %}save a link{% endtrans %}
  • {% trans %}search{% endtrans %} - {% include "WallabagBundle::_search_form.html.twig" %} + {% include "WallabagCoreBundle::_search_form.html.twig" %}
  • -
  • {% trans %}config{% endtrans %}
  • +
  • {% trans %}config{% endtrans %}
  • {% trans %}about{% endtrans %}
  • -
  • {% trans %}logout{% endtrans %}
  • +
  • {% trans %}logout{% endtrans %}
  • diff --git a/src/WallabagBundle/Resources/views/_messages.html.twig b/src/Wallabag/CoreBundle/Resources/views/_messages.html.twig similarity index 100% rename from src/WallabagBundle/Resources/views/_messages.html.twig rename to src/Wallabag/CoreBundle/Resources/views/_messages.html.twig diff --git a/src/WallabagBundle/Resources/views/_save_form.html.twig b/src/Wallabag/CoreBundle/Resources/views/_save_form.html.twig similarity index 100% rename from src/WallabagBundle/Resources/views/_save_form.html.twig rename to src/Wallabag/CoreBundle/Resources/views/_save_form.html.twig diff --git a/src/WallabagBundle/Resources/views/_search_form.html.twig b/src/Wallabag/CoreBundle/Resources/views/_search_form.html.twig similarity index 100% rename from src/WallabagBundle/Resources/views/_search_form.html.twig rename to src/Wallabag/CoreBundle/Resources/views/_search_form.html.twig diff --git a/src/WallabagBundle/Resources/views/_top.html.twig b/src/Wallabag/CoreBundle/Resources/views/_top.html.twig similarity index 100% rename from src/WallabagBundle/Resources/views/_top.html.twig rename to src/Wallabag/CoreBundle/Resources/views/_top.html.twig diff --git a/src/WallabagBundle/Resources/views/layout.html.twig b/src/Wallabag/CoreBundle/Resources/views/layout.html.twig similarity index 80% rename from src/WallabagBundle/Resources/views/layout.html.twig rename to src/Wallabag/CoreBundle/Resources/views/layout.html.twig index 34d9b1b0..83830a4a 100644 --- a/src/WallabagBundle/Resources/views/layout.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/layout.html.twig @@ -11,11 +11,11 @@ {% block title %}{% endblock %} - wallabag - {% include "WallabagBundle::_head.html.twig" %} - {% include "WallabagBundle::_bookmarklet.html.twig" %} + {% include "WallabagCoreBundle::_head.html.twig" %} + {% include "WallabagCoreBundle::_bookmarklet.html.twig" %} -{% include "WallabagBundle::_top.html.twig" %} +{% include "WallabagCoreBundle::_top.html.twig" %}
    {% block menu %}{% endblock %} {% block precontent %}{% endblock %} @@ -28,6 +28,6 @@ {% block content %}{% endblock %}
    -{% include "WallabagBundle::_footer.html.twig" %} +{% include "WallabagCoreBundle::_footer.html.twig" %} \ No newline at end of file diff --git a/src/WallabagBundle/Tests/Controller/DefaultControllerTest.php b/src/Wallabag/CoreBundle/Tests/Controller/DefaultControllerTest.php similarity index 89% rename from src/WallabagBundle/Tests/Controller/DefaultControllerTest.php rename to src/Wallabag/CoreBundle/Tests/Controller/DefaultControllerTest.php index 64b389bb..af20f31f 100644 --- a/src/WallabagBundle/Tests/Controller/DefaultControllerTest.php +++ b/src/Wallabag/CoreBundle/Tests/Controller/DefaultControllerTest.php @@ -1,6 +1,6 @@