Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to one bundle #7151

Merged
merged 38 commits into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
2ed8c21
Move Annotation controller to Core
yguedidi Dec 25, 2023
1a6036c
Move Annotation fixtures to Core
yguedidi Dec 25, 2023
2190174
Move Annotation entity to Core
yguedidi Dec 25, 2023
23301b7
Move Annotation repository to Core
yguedidi Dec 25, 2023
b9a1248
Move Annotation form types to Core
yguedidi Dec 25, 2023
922ddc9
Remove AnnotationBundle
yguedidi Dec 25, 2023
0075456
Rename ManageController to UserController
yguedidi Dec 25, 2023
fab4ccb
Rename Manage template folder to User
yguedidi Dec 25, 2023
a615bcc
Remove unused translation file
yguedidi Dec 25, 2023
3d7bb85
Move User controller to Core
yguedidi Dec 30, 2023
4a356a6
Move User fixtures to Core
yguedidi Dec 30, 2023
a37ded9
Move User entity to Core
yguedidi Dec 30, 2023
bdeaa93
Move User repository to Core
yguedidi Dec 30, 2023
87ed669
Move User form types to Core
yguedidi Dec 30, 2023
d8f2d3c
Move User mailer to Core
yguedidi Dec 30, 2023
615adc8
Move User event listeners to Core
yguedidi Dec 30, 2023
c7bf989
Remove unused template file
yguedidi Dec 30, 2023
0234aa1
Move User templates to Core
yguedidi Dec 30, 2023
7f8b806
Remove UserBundle
yguedidi Dec 30, 2023
020c616
Remove unused routing file
yguedidi Dec 30, 2023
3fc0b5f
Move Api controllers to Core
yguedidi Dec 31, 2023
81577ef
Move Api entities to Core
yguedidi Dec 31, 2023
1bddf4e
Move Api repository to Core
yguedidi Dec 31, 2023
85ba249
Move Api form type to Core
yguedidi Dec 31, 2023
adf1956
Remove ApiBundle
yguedidi Dec 31, 2023
b6b067c
Move Import commands to Core
yguedidi Dec 31, 2023
ed4b20f
Move Import consumers to Core
yguedidi Dec 31, 2023
6787f59
Move Import controllers to Core
yguedidi Dec 31, 2023
47b3a08
Move Import importers to Core
yguedidi Dec 31, 2023
48a6948
Move Import form type to Core
yguedidi Dec 31, 2023
057dbf0
Move Import redis to Core
yguedidi Dec 31, 2023
8b13631
Move Import templates to Core
yguedidi Dec 31, 2023
6552c84
Move Import configuration to Core
yguedidi Jan 1, 2024
2c65169
Remove ImportBundle
yguedidi Jan 1, 2024
bda26c2
Rename wallabag_import to wallabag_core
yguedidi Jan 1, 2024
ce790c8
Make sure tags targetEntity uses FQCN
yguedidi Jan 20, 2024
764f547
Make reset database in tests use migrations instead of schema create
yguedidi Jan 22, 2024
a7fe79d
Make reset database drop full database
yguedidi Jan 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions app/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ public function registerBundles()

// wallabag bundles
new Wallabag\CoreBundle\WallabagCoreBundle(),
new Wallabag\ApiBundle\WallabagApiBundle(),
new Wallabag\UserBundle\WallabagUserBundle(),
new Wallabag\ImportBundle\WallabagImportBundle(),
new Wallabag\AnnotationBundle\WallabagAnnotationBundle(),
];

if (in_array($this->getEnvironment(), ['dev', 'test'], true)) {
Expand Down
44 changes: 22 additions & 22 deletions app/config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,22 +160,22 @@ nelmio_cors:
fos_user:
db_driver: orm
firewall_name: secured_area
user_class: Wallabag\UserBundle\Entity\User
user_class: Wallabag\CoreBundle\Entity\User
registration:
confirmation:
enabled: "%fosuser_confirmation%"
from_email:
address: "%from_email%"
sender_name: wallabag
service:
mailer: Wallabag\UserBundle\Mailer\UserMailer
mailer: Wallabag\CoreBundle\Mailer\UserMailer

fos_oauth_server:
db_driver: orm
client_class: Wallabag\ApiBundle\Entity\Client
access_token_class: Wallabag\ApiBundle\Entity\AccessToken
refresh_token_class: Wallabag\ApiBundle\Entity\RefreshToken
auth_code_class: Wallabag\ApiBundle\Entity\AuthCode
client_class: Wallabag\CoreBundle\Entity\Api\Client
access_token_class: Wallabag\CoreBundle\Entity\Api\AccessToken
refresh_token_class: Wallabag\CoreBundle\Entity\Api\RefreshToken
auth_code_class: Wallabag\CoreBundle\Entity\Api\AuthCode
service:
user_provider: fos_user.user_provider.username_email
options:
Expand All @@ -194,14 +194,14 @@ scheb_two_factor:
google:
enabled: true
issuer: "%server_name%"
template: "@WallabagUser/Authentication/form.html.twig"
template: "@WallabagCore/Authentication/form.html.twig"

email:
enabled: true
sender_email: "%twofactor_sender%"
digits: 6
template: "@WallabagUser/Authentication/form.html.twig"
mailer: Wallabag\UserBundle\Mailer\AuthCodeMailer
template: "@WallabagCore/Authentication/form.html.twig"
mailer: Wallabag\CoreBundle\Mailer\AuthCodeMailer

rulerz:
targets:
Expand Down Expand Up @@ -285,7 +285,7 @@ old_sound_rabbit_mq:
type: topic
queue_options:
name: 'wallabag.import.pocket'
callback: wallabag_import.consumer.amqp.pocket
callback: wallabag_core.consumer.amqp.pocket
qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
import_readability:
connection: default
Expand All @@ -294,7 +294,7 @@ old_sound_rabbit_mq:
type: topic
queue_options:
name: 'wallabag.import.readability'
callback: wallabag_import.consumer.amqp.readability
callback: wallabag_core.consumer.amqp.readability
qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
import_instapaper:
connection: default
Expand All @@ -303,7 +303,7 @@ old_sound_rabbit_mq:
type: topic
queue_options:
name: 'wallabag.import.instapaper'
callback: wallabag_import.consumer.amqp.instapaper
callback: wallabag_core.consumer.amqp.instapaper
qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
import_pinboard:
connection: default
Expand All @@ -312,7 +312,7 @@ old_sound_rabbit_mq:
type: topic
queue_options:
name: 'wallabag.import.pinboard'
callback: wallabag_import.consumer.amqp.pinboard
callback: wallabag_core.consumer.amqp.pinboard
qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
import_delicious:
connection: default
Expand All @@ -321,7 +321,7 @@ old_sound_rabbit_mq:
type: topic
queue_options:
name: 'wallabag.import.delicious'
callback: wallabag_import.consumer.amqp.delicious
callback: wallabag_core.consumer.amqp.delicious
qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
import_wallabag_v1:
connection: default
Expand All @@ -330,7 +330,7 @@ old_sound_rabbit_mq:
type: topic
queue_options:
name: 'wallabag.import.wallabag_v1'
callback: wallabag_import.consumer.amqp.wallabag_v1
callback: wallabag_core.consumer.amqp.wallabag_v1
qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
import_wallabag_v2:
connection: default
Expand All @@ -339,7 +339,7 @@ old_sound_rabbit_mq:
type: topic
queue_options:
name: 'wallabag.import.wallabag_v2'
callback: wallabag_import.consumer.amqp.wallabag_v2
callback: wallabag_core.consumer.amqp.wallabag_v2
qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
import_elcurator:
connection: default
Expand All @@ -348,7 +348,7 @@ old_sound_rabbit_mq:
type: topic
queue_options:
name: 'wallabag.import.elcurator'
callback: wallabag_import.consumer.amqp.elcurator
callback: wallabag_core.consumer.amqp.elcurator
qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
import_firefox:
connection: default
Expand All @@ -357,7 +357,7 @@ old_sound_rabbit_mq:
type: topic
queue_options:
name: 'wallabag.import.firefox'
callback: wallabag_import.consumer.amqp.firefox
callback: wallabag_core.consumer.amqp.firefox
qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
import_chrome:
connection: default
Expand All @@ -366,7 +366,7 @@ old_sound_rabbit_mq:
type: topic
queue_options:
name: 'wallabag.import.chrome'
callback: wallabag_import.consumer.amqp.chrome
callback: wallabag_core.consumer.amqp.chrome
qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
import_shaarli:
connection: default
Expand All @@ -375,7 +375,7 @@ old_sound_rabbit_mq:
type: topic
queue_options:
name: 'wallabag.import.shaarli'
callback: wallabag_import.consumer.amqp.shaarli
callback: wallabag_core.consumer.amqp.shaarli
qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
import_pocket_html:
connection: default
Expand All @@ -384,7 +384,7 @@ old_sound_rabbit_mq:
type: topic
queue_options:
name: 'wallabag.import.pocket_html'
callback: wallabag_import.consumer.amqp.pocket_html
callback: wallabag_core.consumer.amqp.pocket_html
qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}

fos_js_routing:
Expand Down Expand Up @@ -424,7 +424,7 @@ httplug:
wallabag_core.entry.download_images:
factory: 'httplug.factory.auto'
plugins: ['httplug.plugin.logger']
wallabag_import.pocket.client:
wallabag_core.pocket.client:
factory: 'httplug.factory.auto'
plugins:
- 'httplug.plugin.logger'
Expand Down
20 changes: 0 additions & 20 deletions app/config/routing.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
wallabag_annotation:
resource: "@WallabagAnnotationBundle/Controller/"
type: annotation
prefix: /

wallabag_import:
resource: "@WallabagImportBundle/Controller/"
type: annotation
prefix: /import

wallabag_user:
resource: "@WallabagUserBundle/Controller/"
type: annotation
prefix: /users

wallabag_api:
resource: "@WallabagApiBundle/Controller/"
type: annotation
prefix: /

app:
resource: "@WallabagCoreBundle/Controller/"
type: annotation
Expand Down
2 changes: 1 addition & 1 deletion app/config/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ security:
providers:
administrators:
entity:
class: 'Wallabag\UserBundle\Entity\User'
class: 'Wallabag\CoreBundle\Entity\User'
property: username
fos_userbundle:
id: fos_user.user_provider.username_email
Expand Down
Loading
Loading