1
0
mirror of https://github.com/flarum/core.git synced 2025-08-29 02:50:57 +02:00
Commit Graph

8723 Commits

Author SHA1 Message Date
Franz Liedke
70a66a9529 Get rid of event subscribers that resolve services too early
Refs flarum/core#1578.
2018-12-16 16:24:05 +01:00
Franz Liedke
d4783f4ac5 Get rid of event subscribers that resolve services too early, part 1
Refs flarum/core#1578.
2018-12-16 15:14:00 +01:00
Franz Liedke
de1ff99356 Get rid of event subscribers that resolve services too early
Refs flarum/core#1578.
2018-12-16 15:06:10 +01:00
Franz Liedke
dfadc8f5fc Get rid of event subscribers that resolve services too early
Refs flarum/core#1578.
2018-12-16 15:00:02 +01:00
Franz Liedke
42b86cd3c1 Get rid of event subscribers that resolve services too early, part 1
Refs flarum/core#1578.
2018-12-15 17:26:25 +01:00
Franz Liedke
c22c74553f Get rid of event subscribers that resolve services too early
Refs flarum/core#1578.
2018-12-15 17:09:44 +01:00
Franz Liedke
c0f08ff907 Get rid of event subscribers that resolve services too early
Refs flarum/core#1578.
2018-12-15 16:58:00 +01:00
Franz Liedke
8aab6111ec Get rid of event subscribers that resolve services too early
Refs flarum/core#1578.
2018-12-15 16:47:41 +01:00
Franz Liedke
7dc7225b22 Remove unused import 2018-12-15 16:37:54 +01:00
Franz Liedke
c2cabd7c2e I can do this! 2018-12-15 16:24:31 +01:00
Franz Liedke
99adb8e998 Fix copy-paste mistake 2018-12-15 16:01:03 +01:00
Franz Liedke
3656072ff4 Use Formatter extender to avoid resolving the UrlGenerator too early
Refs flarum/core#1578.
Fixes flarum/core#1703.
2018-12-15 12:06:58 +01:00
Franz Liedke
e27cd69974 Allow passing strings (names of invokable classes) to Formatter extender
In preparation for fixing #1703.
2018-12-15 12:05:17 +01:00
Toby Zerner
107bdc87b0 Merge pull request #138 from milescellar/patch-3
Add language entry for starts_with rule and date_equals validation me…
2018-12-15 21:27:05 +10:30
Miles Cellar
6124f3d180 Add language entry for starts_with rule and date_equals validation message
These are commits from Laravel:
5052ab1fd7 (diff-9c04f727a922ad4f105b9ad764ec221d)
78cb2685aa (diff-9c04f727a922ad4f105b9ad764ec221d)
2018-12-15 11:37:27 +01:00
Toby Zerner
2c6398b8e3 Remove obsolete binding 2018-12-14 11:28:11 +10:30
Franz Liedke
3a6e577329 Apply fixes from StyleCI (#1701)
[ci skip] [skip ci]
2018-12-14 01:48:19 +01:00
Franz Liedke
8614bc65d5 Use class constant to get qualified class names 2018-12-14 01:47:54 +01:00
Franz Liedke
c17c785b61 Get rid of docblocks that don't add information 2018-12-13 23:08:49 +01:00
Franz Liedke
4175755a12 Early returns 2018-12-13 23:06:59 +01:00
Kirill
83eebeba2c Fix incorrect docs link (#1699) 2018-12-13 20:19:13 +01:00
Franz Liedke
3e914b7d39 Merge pull request #1697 from flarum/fl/1578-speed-up-extenders
Do not resolve services in extenders
2018-12-13 10:33:00 +01:00
Franz Liedke
d97f7136df Inject dependencies when firing events, not before
The event subscriber approach means that dependencies have to be
injected (and thus instantiated, along with all *their* dependencies) at
the time of registering event listeners - even when events are never
fired within a request's lifecycle.

This is unnecessary and causes more classes than necessary to be loaded.

In this case, we can explicitly register event listeners that will
resolve their dependencies when the event is fired, not before.

Refs #1578.
2018-12-13 02:01:50 +01:00
Franz Liedke
25c8ab0a35 Do not resolve services when extending them
Refs #1578.
2018-12-13 01:58:54 +01:00
David Sevilla Martín
13a6bd535b Fix DELETE /api/extensions/* returning 500 (#1580)
* Use extension string as parameter for ::disable & ::uninstall

* Remove repeated 'ExtensionManager::disable' call

* Fix StyleCI
2018-12-13 00:16:03 +01:00
Arda Çebi
833056dd68 Profile group badge overlapping fix (#1506) 2018-12-12 22:24:30 +01:00
Franz Liedke
875daf3ce2 Rely on TextFormatter to unparse the post content
Refs flarum/core#920.
Possibly fixing flarum/core#537.
2018-12-11 22:56:16 +01:00
Franz Liedke
ef11e87119 Rely on TextFormatter to unparse the post content
Fixes flarum/core#920.
2018-12-11 22:28:26 +01:00
Franz Liedke
57dd0bcbb5 Update changelog 2018-12-10 22:52:50 +01:00
Franz Liedke
46e0e7e042 Add an issue template for security vulnerabilities 2018-12-10 22:43:03 +01:00
David Sevilla Martín
6d185eecf1 Add 'hasPermission' helper to Group (#1688)
* Add Group@hasPermission helper

* Improve performance of method
2018-12-10 22:32:21 +01:00
Franz Liedke
7ffca76c61 Fix incorrect column name for registration token
Oversight from the database renamings, I suppose.

Fixes #1691.
2018-12-09 23:17:04 +01:00
Toby Zerner
13ce2d1e3d Performance: Actually make use of the translator cache
We had added a `storage/locale` directory to our skeleton, but we had
forgotten to hook it up with the translator. Enabling caching saves
parsing that locale YAML files on every pageload which should be good
for performance.

The locale cache will be cleared whenever an extension that uses the
`Locales` or `LanguagePack` extenders is enabled/disabled. If debug
mode is ON, then the caching mechanism will automatically check if any
of the loaded YAML files are dirty and update accordingly.
2018-12-07 09:38:08 +10:30
Toby Zerner
6b6fce878a Add another commit 2018-12-07 09:13:44 +10:30
Toby Zerner
ffc78a0218 Add changelog 2018-12-07 09:12:57 +10:30
Toby Zerner
6ac090c0cb Add changelog 2018-12-07 09:12:50 +10:30
Toby Zerner
4ce3348e1e Add changelog 2018-12-07 09:12:41 +10:30
Toby Zerner
bdf94f9218 Add changelog 2018-12-07 09:12:34 +10:30
Toby Zerner
85bc128e4f Add changelog 2018-12-07 09:12:19 +10:30
Franz Liedke
36a0231796 Release version 0.1.0-beta.8.1 2018-12-06 00:47:38 +01:00
Franz Liedke
de73685764 Do not create tables as InnoDB automatically, rely on connection default
As argued in #1675, this makes us slightly less reliant on MySQL.
2018-12-06 00:34:43 +01:00
Franz Liedke
c7c4046d03 Revert "Explicitly create tags table with InnoDB engine"
This reverts commit b8b72e51af.
2018-12-06 00:34:15 +01:00
Toby Zerner
1b78395d9a Include full last discussion info
Fixes flarum/core#1662
2018-12-05 09:05:07 +10:30
Franz Liedke
b8b72e51af Explicitly create tags table with InnoDB engine
Refs flarum/core#1675.
2018-12-04 10:20:22 +01:00
flarum-bot
7492d7e610 Bundled output for commit f1beefc939 [skip ci] 2018-12-03 23:53:24 +00:00
flarum-bot
bd46f533a3 Bundled output for commit afd6e5a291 [skip ci] 2018-12-03 23:52:29 +00:00
flarum-bot
bea2bc2869 Bundled output for commit ab30e484c1 [skip ci] 2018-12-03 23:51:00 +00:00
flarum-bot
d963704249 Bundled output for commit 8632dd31e5 [skip ci] 2018-12-03 23:48:22 +00:00
Toby Zerner
7ae9b1263b Fix travis builds 2018-12-04 10:16:33 +10:30
Toby Zerner
9bdc10a09a Fix travis builds 2018-12-04 10:16:33 +10:30