Alexander Skvortsov
eed407812f
User Preferences Extender and Tests ( #2463 )
2020-12-04 15:45:08 -05:00
Daniël Klabbers
641619e820
Fixes issue with the worker defaulting to the illuminate queue manager ( #2481 )
...
We are instantiating our own queue handling factory which returns the
flarum.queue.connection binding no matter what. The queue Worker and
other queue related code rely on this manager to get its thing going.
Therefor we need to re-use our own factory everywhere, including in
the worker.
2020-12-02 13:19:25 -05:00
Alexander Skvortsov
fe41bc1fdc
Remove Deprecated Beta14 Code ( #2428 )
2020-12-01 11:21:28 -05:00
Nina Pypchenko
5a763050a6
DRY up image uploading code ( #2477 )
2020-12-01 10:42:05 -05:00
Sami Mazouz
8c813bc340
ApiSerializer Extender ( #2438 )
2020-11-30 19:24:50 -05:00
Alexander Skvortsov
28d56f5fc8
Merge pull request #2465 from flarum/0.1.0-beta.14.1
2020-11-29 17:45:58 -05:00
Alexander Skvortsov
1a5e4d454e
Move floodgate to middleware, add extender + integration tests ( #2170 )
2020-11-29 17:13:22 -05:00
sl-kr
387b4fd315
update a user's comment count if deleting a discussion ( #2472 )
2020-11-29 17:11:05 -05:00
Alexander Skvortsov
0c95774333
Refactor Route Resolving and Dispatch ( #2425 )
...
- Split DispatchRoute. This allows us to run middleware after we figure out which route we're on, but before we actually execute the controller for that route.
- By making the route name explicitly available to middlewares, applications like CSRF and floodgate can set patterns based on route names instead of the path, which is an implementation detail.
- Support using route name match for CSRF extender, deprecate path match
2020-11-10 12:52:12 -05:00
Alexander Skvortsov
f5cfec15e3
Add missing import
2020-11-08 21:49:11 -05:00
Alexander Skvortsov
47d2eee9ce
Fix Callables for Extenders ( #2423 )
...
- Standardize signatures and variable names for extenders that take callbacks
- Adjust model extender docblock to clarify that default calue can't be an invokable class.
- Make invokable classes provided to Model->relationship
- Add integration tests to ensure Model->relationship and User->groupProcessor extenders accept callbacks
- Extract code for wrapping callbacks into central util
2020-11-08 21:36:38 -05:00
Nina Pypchenko
c10cc92deb
Improved Permissions Error Messages for Initial Install ( #2435 )
...
- Made the wording of the error more generic
- Added link to the relevant section in the installation guide
Resolves #2327 .
2020-11-07 14:48:11 -05:00
Sami Mazouz
529d2edcaf
Add Service Provider Extender ( #2437 )
2020-11-06 13:30:10 -05:00
Sami Mazouz
f0e77a5789
Add Notification Channel Extender ( #2432 )
2020-11-05 12:09:06 -05:00
Alexander Skvortsov
87c258b2f8
Refactor and improve formatter extender ( #2098 )
...
- Deprecated all events involved with Formatter
- Refactor ->configure() method on extender not to use events
- Add extender methods for ->render() and ->parse()
- Add integration tests
2020-11-03 13:05:33 -05:00
Alexander Skvortsov
cee87848fe
Added post extender with type method, deprecated ConfigurePostTypes ( #2101 )
2020-11-03 10:43:49 -05:00
Daniël Klabbers
967cd0e3ca
update version constant for beta 14.1
2020-11-02 13:53:20 +01:00
Alexander Skvortsov
5842dd1200
Validator extender ( #2102 )
...
Added validator extender, integration tests, and deprecated related Validating event
2020-11-01 11:31:16 -05:00
Sami Mazouz
b311512502
Add Notification Type Extender and Tests ( #2424 )
2020-10-31 17:17:14 -04:00
Alexander Skvortsov
21c2a4b2a4
Updater should show on any subpath, like installer ( #2426 )
2020-10-30 13:28:20 -04:00
Daniël Klabbers
7055f6d941
update version constant
2020-10-20 16:34:54 +02:00
Daniël Klabbers
2b1581875a
Fixes the queue for beta 14 ( #2363 )
...
- rewrite the queue handling for illuminate 6+
- implement missing maintenance mode callable for queue Worker
- Ensure we resolve append the queue commands once the queue bindings are loaded
- Override WorkCommand because it needs the maintenance flag. It tries to use
the isDownForMaintenance method from the Container assuming it is a Laravel
Application. Circumvented this issue by resolving our Config from IOC instead.
2020-10-09 16:06:28 -04:00
Alexander Skvortsov
962b49567c
Restore stricter email validation
...
In v5.8, Laravel expanded email validation logic to closer match the RFC. This, however, allows emails that aren't conventional (for example, emails lacking a TLD). This commit changes Flarum's UserValidator to use the `email:filter` validator, which uses PHP's filter_var, and is the pre-5.8 behavior.
See https://laravel.com/docs/5.8/validation#rule-email
2020-10-07 15:33:57 -04:00
Daniël Klabbers
ad9917f0d6
Allows callables for default model attribute to gain access
...
to the current model in order to calculate the value needed.
2020-10-07 11:26:58 +02:00
Daniël Klabbers
6977c24dd8
improve deprecated message for b15
2020-10-07 10:23:46 +02:00
Alexander Skvortsov
84d14f485a
Basic Extension Dependency Support ( #2188 )
...
- Don't enable an extension if its dependencies are not enabled
- Don't disable an extension if its dependencies are not disabled
2020-10-02 17:54:28 -04:00
Daniël Klabbers
a001736298
Mark keys for Config required only with InstalledSite ( #2323 )
...
* use fallback on url to prevent errors in cli during install. The value of the fallback doesn't actually matter, we just need something.
2020-09-30 15:38:19 -04:00
Daniël Klabbers
86d4bf0214
Fix for a bug that would delete the new revision of less/js in case the filenames match.
2020-09-30 09:26:32 +02:00
Daniël Klabbers
c7b67b922b
Allow easier overriding of js compiler ( #2318 )
2020-09-29 19:03:51 -04:00
Alexander Skvortsov
efd68df13a
Pass a translator instance to getEmailSubject on MailableInterface ( #2244 )
...
* Pass a translator instance to getMailSubject (breaking change)
* Temporarily comment out getEmailSubject to avoid BC breaks
2020-09-28 00:04:28 -04:00
Franz Liedke
6860b24b70
Use reserved TLD for default dev hostname
...
See https://jdebp.eu/FGA/dns-use-domain-names-that-you-own.html .
2020-09-27 22:55:46 +02:00
Franz Liedke
9ea57e6329
Use Config class for data from config.php
2020-09-25 11:10:52 +02:00
Franz Liedke
6639678fb2
Inject/use new config class where applicable
2020-09-25 10:58:53 +02:00
Franz Liedke
f869999011
Add a helper class for managing low-level config
2020-09-25 10:58:52 +02:00
Daniël Klabbers
aea8a3ff1f
Changes methods and properties from private to protected ( #2308 )
...
The goal of this PR is to offer increased flexibility for integrators and
custom solutions in skeleton modifications.
2020-09-24 14:30:16 -04:00
Alexander Skvortsov
6d38de9c8f
Revert https://github.com/flarum/core/pull/1536 ( #2305 )
2020-09-24 11:30:27 -04:00
Alexander Skvortsov
1321b8cc28
Revert "Use lifecycle interface for frontend extender ( #2211 )" ( #2301 )
...
This reverts commit 3117d2ad7a .
2020-09-23 00:21:45 -04:00
Wadim Kalmykov
633cc14d09
Fix issue where posts API doesn't return the right amount of posts ( #2291 )
2020-09-17 23:59:34 -04:00
Alexander Skvortsov
c6e85ef330
Allow upper case TLS and SSL for SMTP encryption ( #2289 )
2020-09-12 17:43:06 -04:00
phanlyhuynh
3f8432a589
Fix SMTP username and password shouldn't be required ( #2287 )
2020-09-06 15:12:03 -04:00
Johannes Nilsson
384edfa52b
Remove unwanted semicolon in assets files ( #2280 )
2020-08-31 23:52:37 -04:00
Franz Liedke
f939d164b7
Make queue error handler compatible with Laravel 6 ( #2270 )
2020-08-27 22:41:36 -04:00
Alexander Skvortsov
8a73cc522e
Fix optional parameters in url generator ( #2246 )
...
* Fix route collection getting wrong path when optional parameters present, add unit tests
2020-07-28 20:51:14 -04:00
Franz Liedke
db83003eb5
Apply fixes from StyleCI
...
[ci skip] [skip ci]
2020-07-27 19:42:23 +00:00
Franz Liedke
4dc4dc624e
Merge pull request #2243 from flarum/fl/2055-l6-translator
...
Upgrade to Laravel 6, finally!
2020-07-27 21:42:01 +02:00
Alexander Skvortsov
2431df5602
Revert "Fixes wrong IP address when using a reverse proxy ( #2236 )" ( #2242 )
...
This reverts commit 451a557532 pending further discussion of https://github.com/flarum/core/pull/2236#issuecomment-663645583
2020-07-24 14:19:10 -04:00
Alexander Skvortsov
4ee6d6fd88
Revert "Inject Url Generator and Translator Interface into notification mailer ( #2169 )"
...
This was actually already present and functional, so adding additional code for it
is unnecessary.
This reverts commit e627616750 .
2020-07-24 12:44:59 -04:00
Franz Liedke
b46d5e67a3
Make Translator compatible with Laravel 6
...
It's contract will change in Laravel 6. We extend from Symfony's
translator, but need to be compatible with that from Laravel in
order to use its validation package.
References:
- https://laravel.com/docs/6.x/upgrade#trans-and-trans-choice
- 8557dc56b1 (diff-88bc04a1548d09aa6250d902d1ac2b4c)
2020-07-24 17:32:50 +02:00
Franz Liedke
7fd23ff950
Inject Symfony translator contract, not Laravel's
...
The Laravel changes with v6, and our translator is primarily an
implementation of the Symfony contract.
2020-07-24 17:31:46 +02:00
Franz Liedke
e4077ab4ad
Replace a few forgotten obsolete helpers
...
- Apparently, I forgot that `array_flatten` comes from Laravel. :)
- When I did this previously, I did not search the views directory.
2020-07-24 17:28:56 +02:00