Commit graph

517 commits

Author SHA1 Message Date
Yassine Guedidi 2ed8c219cc Move Annotation controller to Core 2024-01-25 20:34:39 +01:00
Yassine Guedidi 423f2f792d Make RabbitMQConsumerTotalProxy non-lazy
It's not supported by the bundle, see https://github.com/php-amqplib/RabbitMqBundle/tree/2.13.2?tab=readme-ov-file#important-notice---lazy-connections
2024-01-22 19:15:54 +01:00
Yassine Guedidi 25474a7b99 Upgrade from lexik/form-filter-bundle to spiriitlabs/form-filter-bundle 2024-01-22 19:15:54 +01:00
Yassine Guedidi ac9473e755 Upgrade dama/doctrine-test-bundle 2024-01-22 19:15:54 +01:00
Yassine Guedidi 2bef3e4927 Use error routing from FrameworkBundle 2024-01-22 19:15:54 +01:00
Yassine Guedidi 7e40142aa0 Remove need for TEST_DATABASE_PATH 2024-01-14 23:16:31 +01:00
Yassine Guedidi 4eb31d1280
Merge pull request #7161 from yguedidi/make-tests-use-dev-database-config
Make tests use dev database config
2024-01-08 09:45:55 +01:00
Yassine Guedidi 8d3f575c03 Make tests use dev database config 2024-01-07 20:00:30 +01:00
Yassine Guedidi aa7dd67131 Use URL to configure DBAL 2024-01-07 17:53:07 +01:00
Yassine Guedidi a6af149fa3 Add missing test_database_socket parameter 2024-01-07 17:53:07 +01:00
Yassine Guedidi ccd50bca7a Move enabling fosuser_registration in tests to config_test.yml 2024-01-07 17:53:07 +01:00
Yassine Guedidi 16c239aa78 Merge branch '2.6' into merge-2.6-in-master 2024-01-03 11:08:10 +01:00
Jeremy Benoist c8f036ad0f
Prepare 2.6.8 release 2024-01-03 07:31:07 +01:00
Yassine Guedidi 16f31549fd Make database dependent commands lazy
(cherry picked from commit 9927a06cab)
2023-12-28 23:56:54 +01:00
Yassine Guedidi bb688e8b7c Use wallabag rulerz packages 2023-12-27 19:26:34 +01:00
Yassine Guedidi 9927a06cab Make database dependent commands lazy 2023-12-26 21:29:00 +01:00
Kevin Decherf 4a5f769428 Merge remote-tracking branch 'origin/2.6' into port/2.6.7
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
2023-10-25 22:09:21 +02:00
Jeremy Benoist fa107116cc
Prepare 2.6.7 release 2023-10-02 14:14:34 +02:00
sonvir249 a0cd522db2
Updated text iTunes to App Store. 2023-10-02 10:07:05 +05:30
Kevin Decherf 2910fb6da4 Merge branch '2.6' into port/2.6.4-2.6.6
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
2023-09-18 16:50:07 +02:00
Rotzbua 51c68655fb Fix some typos 2023-09-18 11:16:19 +02:00
Jeremy Benoist c7e5ba6dd0
Prepare 2.6.6 release 2023-09-07 09:18:56 +02:00
Jeremy Benoist c5d21025c4
Force secure cookie on HTTPS connection 2023-09-06 12:39:40 +02:00
Nicolas Lœuillet f052f6f580
Prepare wallabag 2.6.5 2023-08-28 10:14:40 +02:00
Nicolas Lœuillet 27e54e0634
Merge pull request #6791 from wallabag/change-default-fosuser-registration
Change public registration to false by default
2023-08-24 07:55:13 +02:00
Nicolas Lœuillet e9a837a0ac
Prepare wallabag 2.6.4 2023-08-22 15:37:04 +02:00
Nicolas Lœuillet 2f86dd9c73
Fix API token generation 2023-08-22 13:35:27 +02:00
Nicolas Lœuillet b1752b619d Add display article configurator (font family, font size, line height and max width) 2023-08-22 13:02:50 +02:00
Nicolas Lœuillet 0e44035b67
Merge pull request #6768 from wallabag/remove-mobi
Remove mobi export
2023-08-22 10:18:29 +02:00
Nicolas Lœuillet 2af48b8174 Add Shaarli and Pocket HTML imports 2023-08-22 08:02:07 +02:00
Nicolas Lœuillet a1aac10bd5 Remove mobi export
Fix #6746
2023-08-22 08:01:39 +02:00
Nicolas Lœuillet cbcfa69c05 Remove (useless) demo mode
Fix #6671
2023-08-21 13:16:56 +02:00
Nicolas Lœuillet ca879c36de Prepare wallabag 2.6.3 2023-08-21 11:52:16 +02:00
Yassine Guedidi cc33fcb4ba Replace kernel.root_dir by kernel.project_dir 2023-08-09 22:46:18 +01:00
Yassine Guedidi e93fdca2d3 Use Twig instead of templating 2023-08-05 16:43:36 +01:00
Nicolas Lœuillet 5e4eae42a0 Change public registration to false by default 2023-08-03 16:15:37 +02:00
Nicolas Lœuillet 192fa3ea2e
Prepare 2.6.2 release 2023-07-24 10:28:28 +02:00
Nicolas Lœuillet c75d3e6961 Remove twofactor_auth parameter
Fix #6649
2023-07-15 16:18:01 +02:00
Nicolas Lœuillet 73682283e4 Prepare 2.6.1 release 2023-06-21 07:13:03 +02:00
Jeremy Benoist 679dc32885
Do not autoload fixtures
They should only be loaded from `app/config/services_test.yml`.
Otherwise we'll have an issue when clearing the cache in prod env:

```
In DefinitionErrorExceptionPass.php line 54:

  Class "Doctrine\Bundle\FixturesBundle\Fixture" not found while loading "Wal
  labag\AnnotationBundle\DataFixtures\AnnotationFixtures".
```

Also update deps to latest.
2023-06-20 19:28:08 +02:00
Nicolas Lœuillet aee7df9f3d Prepare 2.6.0 release 2023-06-19 22:14:27 +02:00
Nicolas Lœuillet a94d7503c2
Added new setting to show / hide articles thumbnails 2023-06-16 14:27:15 +02:00
Nicolas Lœuillet 54b3977a3c Update main contributors 2023-06-16 11:40:33 +02:00
Nicolas Lœuillet 5d4743e944
Changed default value for domain_name parameter 2023-06-15 09:06:52 +02:00
Jeremy Benoist 66b7bdd07c
Merge remote-tracking branch 'origin/2.5.x' 2023-04-24 14:36:32 +02:00
Jeremy Benoist 812d6ac376
Prepare 2.5.4 2023-02-07 22:03:20 +01:00
Jeremy Benoist b795622f06
Prepare 2.5.3 2023-02-01 09:51:02 +01:00
Jérémy Benoist 7625e36b5a
Merge pull request #6182 from caspermeijn/openapi3
Update annotations to OpenApi 3
2023-01-02 10:39:56 +01:00
Casper Meijn 4f9c7a92a1 Update annotations to OpenApi 3
Most of the API annotations are directly converted. The changes in meaning are:
- Parameters "in body" is not supported anymore. These are changed to "in query" or to a request body (depending on the code).
2022-12-23 14:54:55 +01:00
Jérémy Benoist f04e48fc23
Merge pull request #6171 from wallabag/fix/json-array-dbal-type
Properly handle `json_array` type removal
2022-12-22 16:29:53 +01:00
Jeremy Benoist cdd2185063
Properly handle json_array type removal
The `json_array` type was removed from DBAL v3, we should handle it using a migration to avoid error.
I've also added the remove type because we need it during migration.
2022-12-21 11:02:51 +01:00
Jeremy Benoist 0a6e6abdc4
Add RabbitMQConsumerTotalProxy to lazy RabbitMQ services for messages
This is just a simple proxy because we can't lazy load RabbitMQ service just to count number of messages in the queue.
As they are automatically injected in the controller now, we can't lazy load them.

Also forgot to use `AbstractController` in previous PR about _controller as a service_.
2022-12-19 13:23:56 +01:00
Jeremy Benoist 6aca334d53
Move to controller as a service
Mostly using autowiring to inject deps.
The only tricky part was for import because all producer use the same class and have a different alias. So we must write them down in the service definition, autowiring doesn't work in that case.

Usually:
- if a controller has a constructor, it means injected services are at least re-used once in actions
- otherwise, service are injected per action
2022-12-19 10:38:08 +01:00
Jeremy Benoist 67a344c2c6
Update PagerFanta 2022-12-16 12:22:56 +01:00
Jeremy Benoist b3099f68c5
Update all Doctrine deps
Also update these deps to be compatible with latest Doctrine version:
- `friendsofsymfony/oauth-server-bundle`
- `lexik/form-filter-bundle`
- `dama/doctrine-test-bundle`
2022-12-16 10:29:42 +01:00
Jérémy Benoist 8f473ecf5c
Merge pull request #6152 from wallabag/fix/container-aware-command
Remove `ContainerAwareCommand` from commands
2022-12-16 10:25:26 +01:00
Jeremy Benoist 32661f380c
Replace SwiftMailer by Symfony Mailer 2022-12-16 10:03:34 +01:00
Jeremy Benoist 5832482a10
Remove ContainerAwareCommand from commands
And use DI to retrieve services in commands (except for `RedisWorkerCommand` where the container is injected, hard to find a better way, at least for now).
2022-12-16 10:02:15 +01:00
Jeremy Benoist 5e2ad5f8db
Move translations files to /translations
This is a recommendation for Symfony 5
2022-12-15 21:19:41 +01:00
Jeremy Benoist 28abfe264a
Upgrade to Twig 3 2022-12-15 13:44:21 +01:00
Jeremy Benoist 33267f0736
Update to FOSUserBundle 3.1
Also remove some deprecation from Symfony.
Use `LegacyEventDispatcherProxy` to handle Symfony 4 dispatch from FOSUser
2022-12-14 09:42:17 +01:00
Jeremy Benoist aa5c7f05b8
Upgrade to Symfony 4.4
- disable autowiring for Event (because the Entry entity was injected)
- rename `getClient()` for test to `getTestClient()` to avoid error while overriding (from `BrowserKitAssertionsTrait`)
2022-11-29 18:01:46 -08:00
Jeremy Benoist 1d3935fbd3
Remove LiipThemeBundle
As baggy theme was removed and material is the only remaining theme, we don't need a theme switched anymore.
So:
- move all `*.twig` files from the material theme folder to the root
- remove useless translations
2022-11-23 14:52:06 +01:00
Jeremy Benoist 27e788d0be
Re-create all API routes 2022-11-23 12:44:55 +01:00
Jeremy Benoist 2efb990a14
Remove deprecated options from FOSRest
Also add a new alias for rulerz to remove a deprecation.
2022-11-23 11:13:52 +01:00
Jeremy Benoist b41696fd1c Remove some deprecation 2022-11-22 21:39:34 +01:00
Casper Meijn 470a8575c0 Update to nelmio/api-doc 3.0
Convert ApiDoc to Swagger
2022-11-16 16:10:33 +01:00
Jeremy Benoist 8d3fcd4635
Merge remote-tracking branch 'origin/master' into 2.6.0 2022-11-03 10:30:17 +01:00
Nicolas Lœuillet 29308024ac Removed old, not so maintained and buggy baggy theme 2022-11-03 09:55:20 +01:00
Nicolas Lœuillet 4947d419a3
Removed Carrot & Scuttle share 2022-11-01 15:10:02 +01:00
Jeremy Benoist 7b2107d3bb
Prepare 2.5.2 2022-10-20 16:00:16 +02:00
Yassine Guedidi eb43c78720 Use FQCN instead of service alias 2022-09-01 09:07:19 +02:00
Yassine Guedidi 1c479d6b97 Autowire Redis and RabbitMQ services 2022-08-31 02:05:30 +02:00
Yassine Guedidi e856c06d39 Simplify service definitions 2022-08-31 02:05:30 +02:00
Yassine Guedidi d520e55c84 Bind most constructor parameters to simplify service definition 2022-08-31 02:05:30 +02:00
Yassine Guedidi 1bee0eeb29 Make repositories use ServiceEntityRepository 2022-08-31 02:05:30 +02:00
Yassine Guedidi 51884911f5 Pass logger in constructor for importers 2022-08-31 02:05:29 +02:00
Yassine Guedidi 96c8cc25af Remove autoconfigured tags 2022-08-31 02:05:29 +02:00
Yassine Guedidi dad088b575 Autowire service arguments 2022-08-31 02:05:29 +02:00
Yassine Guedidi 76a5133545 Enable autowire and autoconfigure 2022-08-31 02:05:29 +02:00
Yassine Guedidi 73bdd66c84 Move services and parameters to app services 2022-08-31 02:05:29 +02:00
Yassine Guedidi 791b674cdc Migrate remaining places 2022-08-26 17:47:46 +02:00
Yassine Guedidi 481283bbee Migrate controller and action references 2022-08-26 17:47:46 +02:00
Yassine Guedidi 9549a90e76 Migrate first level template references to new notation 2022-08-25 21:09:26 +02:00
Yassine Guedidi 60777e0573 Use FQCN as service name for remaining CoreBundle services 2022-08-24 23:24:25 +02:00
Yassine Guedidi 0f9c359476 Use FQCN as service name for repositories 2022-08-24 23:24:25 +02:00
Yassine Guedidi 844e8e9d22 Use FQCN as service name for helper services 2022-08-24 23:24:24 +02:00
Yassine Guedidi 4449265836 Use FQCN as service name for remaining UserBundle services 2022-08-24 23:17:17 +02:00
Yassine Guedidi ff9f719ec5 Use FQCN as service name for UserRepository 2022-08-24 23:17:17 +02:00
Yassine Guedidi 97a4e826b5 Use FQCN as service name for global services 2022-08-24 23:17:16 +02:00
Yassine Guedidi 007bd31bee Use a listener to skip registration 2022-08-15 17:23:16 +02:00
Yassine Guedidi bfc28d4c0b Use Twig globals to pass registration_enabled 2022-08-15 17:23:16 +02:00
Yassine Guedidi 5a55a64fee Use fosuser_registration directly instead of wallabag_user.registration_enabled 2022-08-15 17:23:16 +02:00
Jeremy Benoist c2ef197726 Prepare 2.5.1
And also update Composer & Yarn deps.
2022-06-08 23:13:37 +02:00
Jeremy Benoist 1a5348a8b8
Prepare 2.5.0 release 2022-05-17 20:29:28 +02:00
Kevin Decherf 5809d7b072
Merge pull request #5794 from wallabag/2.5.0
Merge branch 2.5.0 in master
2022-05-14 16:44:13 +02:00
Jeremy Benoist 4947ea6758
Merge remote-tracking branch 'origin/master' into 2.5.0 2022-05-13 13:50:50 +02:00
Kevin Decherf 6824914eb5
Deprecate mobi export
- Disable mobi export on new installations
- Put a note in the setting label

Closes #5773

Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
2022-05-13 09:52:43 +02:00
Yassine Guedidi 82fc828442 Remove bundle inheritance 2022-04-24 05:56:44 +02:00
Jeremy Benoist 0ac8089eee
CI workaround for PHP < 7.4 & MySQL 8
The error on PHP 7.2 & 7.3 is:

> PDO::__construct(): The server requested authentication method unknown to the client [caching_sha2_password]

See:
- https://stackoverflow.com/q/53066962/569101
- https://stackoverflow.com/q/52364415/569101
- https://stackoverflow.com/q/51489616/569101
- https://stackoverflow.com/q/50026939/569101

Also upgrade `actions/checkout` v3
2022-04-11 22:11:22 +02:00