Philipp Holzer
9abfd55d37
modified hint
2019-08-15 16:25:34 +02:00
Philipp Holzer
f3269bf826
Add hint for getClass
2019-08-15 16:19:23 +02:00
Philipp Holzer
cba9fa2467
Move isBackend logic to App\Mode
2019-08-15 15:51:15 +02:00
Philipp Holzer
6546bf5ad6
fix isBackend()
2019-08-13 19:05:32 +02:00
Philipp Holzer
4089e17f85
re-add App::isBackend()
2019-08-13 16:29:12 +02:00
Philipp Holzer
0af9747c6c
Add Arguments & Modules class
2019-08-13 16:29:11 +02:00
Hypolite Petovan
fcb1a78352
Revert "Introduce Arguments / Module class"
2019-08-11 18:01:11 -04:00
Philipp Holzer
2c5ba7fc15
Introduce Arguments / Module class
...
- move from App
- add tests for Arguments/Module class
2019-08-11 14:24:05 +02:00
Philipp Holzer
6c2cf494b5
Remove DependencyFactory
...
- Include all necessary classes in `dependencies.config.php`
- Add DI-reference to BaseObject (acts as a global registry)
- Refactor all static "init()" methods to use the global registry
- Refactor Logging for Worker-Logger a little bit
2019-07-27 23:54:12 +02:00
Hypolite Petovan
56afc43b21
Extend the use of exceptions in App::runFrontend
...
- Replace an explicit header locatiobn + exit with System::externalRedirect
2019-07-23 20:01:45 -04:00
Philipp Holzer
55999730e0
Introduce DICE
...
- Adding dice library
- Adding dependency config
- Removing Factories
- Refactoring App\Mode constructor
- Refactoring App\Router constructor
- Refactoring BasePath for DI usage
- Refactoring ConfigFileLoader constructor
- Refactoring Profiler constructor
- Adjust entrypoints (index, console, worker, ..)
- Adding functional test for DI
- Fix tests because of refactorings
2019-07-21 01:22:10 +02:00
Hypolite Petovan
0b97b32a59
Merge pull request #7379 from nupplaphil/task/refactor_l10n_for_test
...
Refactor L10n for testing
2019-07-16 16:03:42 -04:00
Philipp Holzer
92fb0a82ca
Dynamic config loading
...
- Move settings, defaults and dbstructure to directory 'static'
- Dynamic loading of config files (after the static loading)
- Filter out '-sample.config.php' and '-sample.ini.php' files
- Remove unnecessary ConfigFileManager
- Move ConfigFileLoader to Utils
- Add tests for multi-loading for INI, config and sample-filtering
2019-07-16 20:16:43 +02:00
Philipp Holzer
eb024a3718
Refactor L10n for testing
...
- Moving L10n to L10n\L10n
- Adding constructor information
- Adding to factory
- simplify/speedup tests
2019-07-16 16:44:47 +02:00
Philipp Holzer
c82127ffb7
Splitting ConfigCache & PConfigCache
...
- Remove IConfigCache & IPConfigCache
- Add new PConfigCache
- Add missing Logger::init() (bugfixing tests)
2019-07-12 22:53:37 +02:00
Philipp Holzer
082634adbc
Moving from DBA to Database
2019-06-24 09:36:07 +02:00
Hypolite Petovan
b9ab613777
Merge branch 'master' into develop
2019-06-23 17:40:52 -04:00
Philipp Holzer
dec5983850
Remove .well-known hardening
2019-06-02 03:19:44 +02:00
Hypolite Petovan
ed768c71ee
Remove "f=&" nonsense from network module
...
- Fixes wrong redirect when using the sidebar filters
2019-05-27 17:45:27 -04:00
Hypolite Petovan
01e71254d9
Replace defaults() calls on $_SESSION by Core\Session calls
...
- Replace direct calls to $_SESSION by Core\Session calls in Module\Login
2019-05-26 21:26:59 -04:00
Philipp Holzer
076370631f
Friendica-7112 - Missing basepath fix
2019-05-13 19:30:03 +02:00
Hypolite Petovan
123c4610e7
Break redirection loop during install
2019-05-08 08:30:59 -04:00
Philipp Holzer
9fb111bca2
Rename ServiceUnavailableException & alter maintenance
2019-05-05 10:07:33 +02:00
Philipp Holzer
62fd5375dc
Move mod/maintenance to src/Module/Maintenance
2019-05-05 10:06:50 +02:00
Philipp
97f723e09e
Merge pull request #7074 from MrPetovan/task/move-display-to-src
...
Remove support for defunct Friendica F-Droid app
2019-05-02 23:55:54 +02:00
Hypolite Petovan
e6bf97777f
Remove /display/{nick}/{id} URL structure publishing
...
- Remove support for defunct Friendica F-Droid app
2019-05-02 17:04:17 -04:00
Hypolite Petovan
36996dd422
Remove usage of non-existent Module\Special\HTTPException::rawContent return value
2019-05-02 16:56:34 -04:00
Philipp Holzer
bbd3071940
Remove old BaseModule routing
2019-05-02 22:05:56 +02:00
Philipp
2628da422a
Merge pull request #7068 from MrPetovan/task/7047-theme-error-page
...
Themed error page redux
2019-05-02 21:15:29 +02:00
Philipp
774d04cd2f
Merge pull request #7044 from MrPetovan/task/router
...
Move mod/admin to src/Module/Admin
2019-05-02 18:26:30 +02:00
Hypolite Petovan
358baa9f62
Add themed error pages
...
- Module init, post and rawContent-triggered HTTPException generate the classic bare HTTP status page
- Module content-triggered HTTPException generate themed error pages
- Trim System::httpExit to the bare minimum
2019-05-02 11:26:56 -04:00
Hypolite Petovan
9774c95b80
Remove duplicate $baseurl template variable
...
- Remove unused $overwriteURL parameter in Renderer::replaceMacros
2019-05-02 09:55:48 -04:00
Hypolite Petovan
7b1ea6cad6
Remove App->error
2019-05-01 21:17:03 -04:00
Michael Vogel
550291afbf
AP endpoints are added to the list of backend processes
2019-04-29 17:51:38 +02:00
Philipp Holzer
58c9566c3d
code style & install-403 fix
2019-04-14 14:24:01 +02:00
Philipp Holzer
677cb205f5
fix auto install
2019-04-14 14:23:58 +02:00
Hypolite Petovan
a55efbab7a
Only call page_end hooks for standalone pages (no Ajax)
2019-04-13 10:32:15 -04:00
Hypolite Petovan
900074d117
Move App->checkBackend after module determination
...
- Update App->checkBackend to remove dependency to App properties
2019-04-11 05:27:26 -04:00
Philipp Holzer
edd4f06ad0
Adding tests
2019-04-09 08:31:18 +02:00
Philipp Holzer
318a3ca785
Create own base URL class which holds the whole base url business logic
2019-04-09 08:31:16 +02:00
Michael
1b339547f3
Fix warning
2019-04-09 05:17:02 +00:00
Hypolite Petovan
d6d31f43a1
Add App\Router dependency injection to App
...
- Moved collectRoutes method from App to App\Router
2019-04-05 23:16:12 -04:00
Hypolite Petovan
42b360f479
Implement feedback changes to App\Router
...
- Add class PhpDoc
- Switch Router->routeCollector scope to protected
- Added getter for Router->routeCollector
- Added EOF new line
- Removed unused use statement
- Improved App->collectRoutes PhpDoc
2019-04-04 07:29:26 -04:00
Hypolite Petovan
993f4e5fcc
Add sample route for /itemsource
...
- Fix missing item guid not displaying in Module\Itemsource
2019-04-03 23:36:37 -04:00
Hypolite Petovan
61b6ab7e3e
Add Router to App
...
- Create new Friendica\App\Router class
- Add route_collection hook
- Add route dispatching in App->runFrontend
2019-04-03 23:35:24 -04:00
Hypolite Petovan
b529c03a20
Sanitize theme path items
...
- Sanitize theme style/color/scheme path items
2019-03-31 21:52:48 -04:00
Hypolite Petovan
3de1fc3097
Hotfix for App->registerStylesheet
...
- Wrong condition for strpos()
- Follow-up to #6953
2019-03-31 06:00:20 -04:00
Philipp
e5cc35cb45
Merge pull request #6953 from tobiasd/20190330-csspath
...
check if BasePath is empty to prevent mangeled up CSS path
2019-03-31 10:12:40 +02:00
Tobias Diekershoff
16f44a8237
dont check but only copy if BasePath is present
2019-03-31 08:53:25 +02:00
Philipp Holzer
e0b1f4f251
Hardening ConfigUpgrade
2019-03-30 18:54:22 +01:00