]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
move WallabagBundle into Wallabag:CoreBundle
authorNicolas Lœuillet <nicolas@loeuillet.org>
Fri, 23 Jan 2015 15:28:37 +0000 (16:28 +0100)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Fri, 23 Jan 2015 15:28:37 +0000 (16:28 +0100)
40 files changed:
app/AppKernel.php
app/config/routing.yml
src/Wallabag/CoreBundle/Controller/EntryController.php [moved from src/WallabagBundle/Controller/EntryController.php with 90% similarity]
src/Wallabag/CoreBundle/Controller/StaticController.php [moved from src/WallabagBundle/Controller/StaticController.php with 77% similarity]
src/Wallabag/CoreBundle/DependencyInjection/WallabagCoreExtension.php [moved from src/WallabagBundle/DependencyInjection/WallabagExtension.php with 79% similarity]
src/Wallabag/CoreBundle/Entity/Config.php [moved from src/WallabagBundle/Entity/Config.php with 97% similarity]
src/Wallabag/CoreBundle/Entity/Config.php~ [moved from src/WallabagBundle/Entity/Config.php~ with 100% similarity]
src/Wallabag/CoreBundle/Entity/Entries.php [moved from src/WallabagBundle/Entity/Entries.php with 96% similarity]
src/Wallabag/CoreBundle/Entity/Entries.php~ [moved from src/WallabagBundle/Entity/Entries.php~ with 100% similarity]
src/Wallabag/CoreBundle/Entity/Entry.php~ [moved from src/WallabagBundle/Entity/Entry.php~ with 100% similarity]
src/Wallabag/CoreBundle/Entity/Tags.php [moved from src/WallabagBundle/Entity/Tags.php with 95% similarity]
src/Wallabag/CoreBundle/Entity/Tags.php~ [moved from src/WallabagBundle/Entity/Tags.php~ with 100% similarity]
src/Wallabag/CoreBundle/Entity/TagsEntries.php [moved from src/WallabagBundle/Entity/TagsEntries.php with 97% similarity]
src/Wallabag/CoreBundle/Entity/TagsEntries.php~ [moved from src/WallabagBundle/Entity/TagsEntries.php~ with 100% similarity]
src/Wallabag/CoreBundle/Entity/Users.php [moved from src/WallabagBundle/Entity/Users.php with 98% similarity]
src/Wallabag/CoreBundle/Entity/Users.php~ [moved from src/WallabagBundle/Entity/Users.php~ with 100% similarity]
src/Wallabag/CoreBundle/Entity/UsersConfig.php [moved from src/WallabagBundle/Entity/UsersConfig.php with 97% similarity]
src/Wallabag/CoreBundle/Entity/UsersConfig.php~ [moved from src/WallabagBundle/Entity/UsersConfig.php~ with 100% similarity]
src/Wallabag/CoreBundle/Repository/EntriesRepository.php [moved from src/WallabagBundle/Repository/EntriesRepository.php with 97% similarity]
src/Wallabag/CoreBundle/Resources/config/routing.yml [new file with mode: 0644]
src/Wallabag/CoreBundle/Resources/config/services.xml [moved from src/WallabagBundle/Resources/config/services.xml with 75% similarity]
src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig [moved from src/WallabagBundle/Resources/views/Entry/entries.html.twig with 96% similarity]
src/Wallabag/CoreBundle/Resources/views/Entry/entry.html.twig [moved from src/WallabagBundle/Resources/views/Entry/entry.html.twig with 92% similarity]
src/Wallabag/CoreBundle/Resources/views/Entry/new.html.twig [moved from src/WallabagBundle/Resources/views/Entry/new.html.twig with 54% similarity]
src/Wallabag/CoreBundle/Resources/views/Static/about.html.twig [moved from src/WallabagBundle/Resources/views/Static/about.html.twig with 95% similarity]
src/Wallabag/CoreBundle/Resources/views/_bookmarklet.html.twig [moved from src/WallabagBundle/Resources/views/_bookmarklet.html.twig with 100% similarity]
src/Wallabag/CoreBundle/Resources/views/_footer.html.twig [moved from src/WallabagBundle/Resources/views/_footer.html.twig with 100% similarity]
src/Wallabag/CoreBundle/Resources/views/_head.html.twig [moved from src/WallabagBundle/Resources/views/_head.html.twig with 100% similarity]
src/Wallabag/CoreBundle/Resources/views/_menu.html.twig [moved from src/WallabagBundle/Resources/views/_menu.html.twig with 66% similarity]
src/Wallabag/CoreBundle/Resources/views/_messages.html.twig [moved from src/WallabagBundle/Resources/views/_messages.html.twig with 100% similarity]
src/Wallabag/CoreBundle/Resources/views/_save_form.html.twig [moved from src/WallabagBundle/Resources/views/_save_form.html.twig with 100% similarity]
src/Wallabag/CoreBundle/Resources/views/_search_form.html.twig [moved from src/WallabagBundle/Resources/views/_search_form.html.twig with 100% similarity]
src/Wallabag/CoreBundle/Resources/views/_top.html.twig [moved from src/WallabagBundle/Resources/views/_top.html.twig with 100% similarity]
src/Wallabag/CoreBundle/Resources/views/layout.html.twig [moved from src/WallabagBundle/Resources/views/layout.html.twig with 80% similarity]
src/Wallabag/CoreBundle/Tests/Controller/DefaultControllerTest.php [moved from src/WallabagBundle/Tests/Controller/DefaultControllerTest.php with 89% similarity]
src/Wallabag/CoreBundle/Twig/Extension/WallabagExtension.php [moved from src/WallabagBundle/Twig/Extension/WallabagExtension.php with 94% similarity]
src/Wallabag/CoreBundle/WallabagCoreBundle.php [new file with mode: 0644]
src/Wallabag/Wallabag/Database.php
src/WallabagBundle/Resources/config/routing.yml [deleted file]
src/WallabagBundle/WallabagBundle.php [deleted file]

index 5d159df8ceb2d461d46f48bd9f8c83eba3c56bed..b0a66daddb5dcf4437cefa388beb933db62bb9e2 100644 (file)
@@ -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'))) {
index d0ece8e303c10e6087932162fa1a04b2d9d4b1ff..b3c5291a8745400bc137fbcb2554f61fe85439f5 100644 (file)
@@ -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
similarity index 90%
rename from src/WallabagBundle/Controller/EntryController.php
rename to src/Wallabag/CoreBundle/Controller/EntryController.php
index dc1876fac4416652a670599d2a59a46c347d7e22..2ebb416c654671e1b530f0b518c4d8e02072aa16 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 
-namespace WallabagBundle\Controller;
+namespace Wallabag\CoreBundle\Controller;
 
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
 use Symfony\Bundle\FrameworkBundle\Controller\Controller;
 use Symfony\Component\HttpFoundation\Request;
-use WallabagBundle\Repository;
-use WallabagBundle\Entity\Entries;
+use Wallabag\CoreBundle\Repository;
+use Wallabag\CoreBundle\Entity\Entries;
 use Wallabag\Wallabag\Tools;
 use Wallabag\Wallabag\Url;
 
@@ -47,7 +47,7 @@ class EntryController extends Controller
             return $this->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)
         );
     }
similarity index 77%
rename from src/WallabagBundle/Controller/StaticController.php
rename to src/Wallabag/CoreBundle/Controller/StaticController.php
index aee2bb7ea0ec021d05a9b1675347031772898017..0fd19d6529859f6e480b9b8d56af2bfbc1b95c41 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-namespace WallabagBundle\Controller;
+namespace Wallabag\CoreBundle\Controller;
 
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
 use Symfony\Bundle\FrameworkBundle\Controller\Controller;
@@ -13,7 +13,7 @@ class StaticController extends Controller
     public function aboutAction()
     {
         return $this->render(
-            'WallabagBundle:Static:about.html.twig',
+            'WallabagCoreBundle:Static:about.html.twig',
             array()
         );
     }
similarity index 79%
rename from src/WallabagBundle/DependencyInjection/WallabagExtension.php
rename to src/Wallabag/CoreBundle/DependencyInjection/WallabagCoreExtension.php
index cfdb21fc8cd8871d5ce5765db8fd62a3f202224b..7cc4165efe26366186959a04e81d2221eb171688 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 
-namespace WallabagBundle\DependencyInjection;
+namespace Wallabag\CoreBundle\DependencyInjection;
 
 use Symfony\Component\DependencyInjection\ContainerBuilder;
 use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
 use Symfony\Component\HttpKernel\DependencyInjection\Extension;
 use Symfony\Component\Config\FileLocator;
 
-class WallabagExtension extends Extension
+class WallabagCoreExtension extends Extension
 {
     public function load(array $configs, ContainerBuilder $container)
     {
@@ -17,6 +17,6 @@ class WallabagExtension extends Extension
 
     public function getAlias()
     {
-        return 'wallabag';
+        return 'wallabag_core';
     }
 }
similarity index 97%
rename from src/WallabagBundle/Entity/Config.php
rename to src/Wallabag/CoreBundle/Entity/Config.php
index 8b692cefd4c618b473970eaaf7dba6abeb284c33..d60b2df04a417b6aa6cb0b7de79657a16eaf18d4 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-namespace WallabagBundle\Entity;
+namespace Wallabag\CoreBundle\Entity;
 
 use Doctrine\ORM\Mapping as ORM;
 
similarity index 96%
rename from src/WallabagBundle/Entity/Entries.php
rename to src/Wallabag/CoreBundle/Entity/Entries.php
index 5849a21612019c0b1d728844f91dea28fc1ab0de..712ff1262097d82404884287c505479417cc553d 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-namespace WallabagBundle\Entity;
+namespace Wallabag\CoreBundle\Entity;
 
 use Doctrine\ORM\Mapping as ORM;
 use Symfony\Component\Validator\Constraints as Assert;
@@ -8,7 +8,7 @@ use Symfony\Component\Validator\Constraints as Assert;
 /**
  * Entries
  *
- * @ORM\Entity(repositoryClass="WallabagBundle\Repository\EntriesRepository")
+ * @ORM\Entity(repositoryClass="Wallabag\CoreBundle\Repository\EntriesRepository")
  * @ORM\Table(name="entries")
  */
 class Entries
similarity index 95%
rename from src/WallabagBundle/Entity/Tags.php
rename to src/Wallabag/CoreBundle/Entity/Tags.php
index c0c78ee51f4fc39c447dac9aa15e4b0a3f9ea257..6fe16a5355f47e7f0cc3bd471207c0355702c8fb 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-namespace WallabagBundle\Entity;
+namespace Wallabag\CoreBundle\Entity;
 
 use Doctrine\ORM\Mapping as ORM;
 
similarity index 97%
rename from src/WallabagBundle/Entity/TagsEntries.php
rename to src/Wallabag/CoreBundle/Entity/TagsEntries.php
index 448c54fac5588876dcb1fab89495d5534c94861e..ad01cf575e686d2057101b701aff4dea507510b7 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-namespace WallabagBundle\Entity;
+namespace Wallabag\CoreBundle\Entity;
 
 use Doctrine\ORM\Mapping as ORM;
 
similarity index 98%
rename from src/WallabagBundle/Entity/Users.php
rename to src/Wallabag/CoreBundle/Entity/Users.php
index a48f2240fb545874b6b3099b40f4aef59cd33044..3db4a3fd954c770755601539026c9bfc2c737b22 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-namespace WallabagBundle\Entity;
+namespace Wallabag\CoreBundle\Entity;
 
 use Doctrine\ORM\Mapping as ORM;
 
similarity index 97%
rename from src/WallabagBundle/Entity/UsersConfig.php
rename to src/Wallabag/CoreBundle/Entity/UsersConfig.php
index 8af283cc48eb66b920591ae431f1328874ea7a4c..26fb44ee4d41447c3fa1706c6b3d0c902bc4c30a 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-namespace WallabagBundle\Entity;
+namespace Wallabag\CoreBundle\Entity;
 
 use Doctrine\ORM\Mapping as ORM;
 
similarity index 97%
rename from src/WallabagBundle/Repository/EntriesRepository.php
rename to src/Wallabag/CoreBundle/Repository/EntriesRepository.php
index 3eb1733d1ebff98cb3ea92c19fa6093155b7f184..5a71b9efe80d6606590ff38996d2419dccbcbd83 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-namespace WallabagBundle\Repository;
+namespace Wallabag\CoreBundle\Repository;
 
 use Doctrine\ORM\Query;
 use Doctrine\ORM\EntityRepository;
diff --git a/src/Wallabag/CoreBundle/Resources/config/routing.yml b/src/Wallabag/CoreBundle/Resources/config/routing.yml
new file mode 100644 (file)
index 0000000..327d49d
--- /dev/null
@@ -0,0 +1,3 @@
+_wllbg:
+    resource: "@WallabagCoreBundle/Controller/EntryController.php"
+    type:     annotation
\ No newline at end of file
similarity index 75%
rename from src/WallabagBundle/Resources/config/services.xml
rename to src/Wallabag/CoreBundle/Resources/config/services.xml
index 02d82643c3825da7d5a2040d0b12b28a69f7b72b..02308e6aabba623d2fc2c63d06867b3848734137 100644 (file)
@@ -5,8 +5,13 @@
     xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
 
     <services>
-        <service id="wallabag.twig.extension.wallabag_extension" class="WallabagBundle\Twig\Extension\WallabagExtension">
+        <service id="wallabag_core.twig.wallabag" class="Wallabag\CoreBundle\Twig\Extension\WallabagExtension">
             <tag name="twig.extension" />
         </service>
     </services>
+
+
+
 </container>
+
+
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 de343aa221d11e68d374f5aa4ab52a725cd52707..2f8423d78fdca0728aa13938b801cbf169e17fa0 100644 (file)
@@ -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 %}
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 8c08b2ef09159aef64fbbe63118145f03fd56082..78dfa7c0ac92db7b39601c7fb16499bbd4027f59 100644 (file)
@@ -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 %}<li><a href="http://flattr.com/submit/auto?url={{ entry.url }}" class="tool flattr icon icon-flattr" target="_blank" title="{% trans %}flattr{% endtrans %}"><span>{% trans %}flattr{% endtrans %}</span></a></li>{% elseif flattr.status == flattred %}<li><a href="{{ flattr.flattrItemURL }}" class="tool flattr icon icon-flattr" target="_blank" title="{% trans %}flattr{% endtrans %}><span>{% trans %}flattr{% endtrans %}</span> ({{ flattr.numFlattrs }})</a></li>{% endif %}{% endif %} #}
             {% if carrot %}<li><a href="https://secure.carrot.org/GiveAndGetBack.do?url={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}" class="tool carrot icon-image icon-image--carrot" target="_blank" title="{% trans %}carrot{% endtrans %}"><span>Carrot</span></a></li>{% endif %}
             {% if show_printlink %}<li><a title="{% trans %}Print{% endtrans %}" class="tool icon icon-print" href="javascript: window.print();"><span>{% trans %}Print{% endtrans %}</span></a></li>{% endif %}
-            {% if export_epub %}<li><a href="./?epub&amp;method=id&amp;value={{ entry.id|e }}" title="Generate ePub file">EPUB</a></li>{% endif %}
-            {% if export_mobi %}<li><a href="./?mobi&amp;method=id&amp;value={{ entry.id|e }}" title="Generate Mobi file">MOBI</a></li>{% endif %}
-            {% if export_pdf %}<li><a href="./?pdf&amp;method=id&amp;value={{ entry.id|e }}" title="Generate PDF file">PDF</a></li>{% endif %}
+            {% if export_epub %}<li><a href="?epub&amp;method=id&amp;value={{ entry.id|e }}" title="Generate ePub file">EPUB</a></li>{% endif %}
+            {% if export_mobi %}<li><a href="?mobi&amp;method=id&amp;value={{ entry.id|e }}" title="Generate Mobi file">MOBI</a></li>{% endif %}
+            {% if export_pdf %}<li><a href="?pdf&amp;method=id&amp;value={{ entry.id|e }}" title="Generate PDF file">PDF</a></li>{% endif %}
             <li><a href="mailto:hello@wallabag.org?subject=Wrong%20display%20in%20wallabag&amp;body={{ entry.url|url_encode }}" title="{% trans %}Does this article appear wrong?{% endtrans %}" class="tool bad-display icon icon-delete"><span>{% trans %}Does this article appear wrong?{% endtrans %}</span></a></li>
         </ul>
     </div>
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 78da791f870d764271570ff2cd0d4333622b729d..df6926a0f70e706439dc67a8f19a035b96d9b0a6 100644 (file)
@@ -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 %}
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 752526e113339bde79cd40fcd6b38334279f7956..0585eccabee41dd430eeb0a71ac24f9adbc1fd7d 100755 (executable)
@@ -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 %}
     <h2>{% trans %}About wallabag{% endtrans %}</h2>
similarity index 66%
rename from src/WallabagBundle/Resources/views/_menu.html.twig
rename to src/Wallabag/CoreBundle/Resources/views/_menu.html.twig
index 419a676b985f31d06a46fb5ba8795e5bde3c3917..d4560e84b18b837bcdd5068216b7dda3156e54db 100644 (file)
@@ -3,13 +3,13 @@
                 <li><a href="{{ path('unread') }}">{% trans %}unread{% endtrans %}</a></li>
                 <li><a href="{{ path('starred') }}">{% trans %}favorites{% endtrans %}</a></li>
                 <li><a href="{{ path('archive') }}"}>{% trans %}archive{% endtrans %}</a></li>
-                <li><a href="./?view=tags">{% trans %}tags{% endtrans %}</a></li>
+                <li><a href="?view=tags">{% trans %}tags{% endtrans %}</a></li>
                 <li><a href="{{ path('new_entry') }}">{% trans %}save a link{% endtrans %}</a></li>
                 <li style="position: relative;"><a href="javascript: void(null);" id="search">{% trans %}search{% endtrans %}</a>
-                    {% include "WallabagBundle::_search_form.html.twig" %}
+                    {% include "WallabagCoreBundle::_search_form.html.twig" %}
                 </li>
-                <li><a href="./?view=config">{% trans %}config{% endtrans %}</a></li>
+                <li><a href="?view=config">{% trans %}config{% endtrans %}</a></li>
                 <li><a href={{ path('about') }}>{% trans %}about{% endtrans %}</a></li>
-                <li><a class="icon icon-power" href="./?logout" title="{% trans %}logout{% endtrans %}">{% trans %}logout{% endtrans %}</a></li>
+                <li><a class="icon icon-power" href="?logout" title="{% trans %}logout{% endtrans %}">{% trans %}logout{% endtrans %}</a></li>
             </ul>
 
similarity index 80%
rename from src/WallabagBundle/Resources/views/layout.html.twig
rename to src/Wallabag/CoreBundle/Resources/views/layout.html.twig
index 34d9b1b0c57b49a83a5618b245a7ef83f52fd396..83830a4ae841729f07078b7c652dce5417d9f1d4 100644 (file)
     <meta http-equiv="X-UA-Compatible" content="IE=10">
     <![endif]-->
     <title>{% block title %}{% endblock %} - wallabag</title>
-    {% include "WallabagBundle::_head.html.twig" %}
-    {% include "WallabagBundle::_bookmarklet.html.twig" %}
+    {% include "WallabagCoreBundle::_head.html.twig" %}
+    {% include "WallabagCoreBundle::_bookmarklet.html.twig" %}
 </head>
 <body>
-{% include "WallabagBundle::_top.html.twig" %}
+{% include "WallabagCoreBundle::_top.html.twig" %}
 <div id="main">
     {% block menu %}{% endblock %}
     {% block precontent %}{% endblock %}
@@ -28,6 +28,6 @@
         {% block content %}{% endblock %}
     </div>
 </div>
-{% include "WallabagBundle::_footer.html.twig" %}
+{% include "WallabagCoreBundle::_footer.html.twig" %}
 </body>
 </html>
\ No newline at end of file
similarity index 89%
rename from src/WallabagBundle/Tests/Controller/DefaultControllerTest.php
rename to src/Wallabag/CoreBundle/Tests/Controller/DefaultControllerTest.php
index 64b389bbe6e33423ef4fbf4d482bee773aba11bb..af20f31f10208ab8c723ba80592c6444289a1371 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-namespace WallabagBundle\Tests\Controller;
+namespace Wallabag\CoreBundle\Tests\Controller;
 
 use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
 
similarity index 94%
rename from src/WallabagBundle/Twig/Extension/WallabagExtension.php
rename to src/Wallabag/CoreBundle/Twig/Extension/WallabagExtension.php
index 741fb1910273886a560e063c64fd153538116779..0b004a307265f1da16340be4faf20a66346425e7 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-namespace WallabagBundle\Twig\Extension;
+namespace Wallabag\CoreBundle\Twig\Extension;
 
 class WallabagExtension extends \Twig_Extension
 {
diff --git a/src/Wallabag/CoreBundle/WallabagCoreBundle.php b/src/Wallabag/CoreBundle/WallabagCoreBundle.php
new file mode 100644 (file)
index 0000000..f5899e3
--- /dev/null
@@ -0,0 +1,9 @@
+<?php
+
+namespace Wallabag\CoreBundle;
+
+use Symfony\Component\HttpKernel\Bundle\Bundle;
+
+class WallabagCoreBundle extends Bundle
+{
+}
index 47fa99aa8957cb10b2050e93c40614c47561e590..290731088770aa4641df5166884647fb477b653c 100755 (executable)
@@ -11,7 +11,7 @@
 namespace Wallabag\Wallabag;
 
 use \PDO;
-use WallabagBundle\Entity;
+use CoreBundle\Entity;
 
 class Database {
 
diff --git a/src/WallabagBundle/Resources/config/routing.yml b/src/WallabagBundle/Resources/config/routing.yml
deleted file mode 100644 (file)
index ad79b1f..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-_wllbg:
-    resource: "@WallabagBundle/Controller/EntryController.php"
-    type:     annotation
diff --git a/src/WallabagBundle/WallabagBundle.php b/src/WallabagBundle/WallabagBundle.php
deleted file mode 100644 (file)
index ddfb13f..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace WallabagBundle;
-
-use Symfony\Component\HttpKernel\Bundle\Bundle;
-
-class WallabagBundle extends Bundle
-{
-}