nupplaPhil
e57a87f224
Remove deprecated App::setBaseURL() - process methods to DI::baseUrl()->saveByURL()
2019-12-29 20:17:47 +01:00
nupplaPhil
50be94aa5e
Remove deprecated App::getHostName() - process methods to DI::baseUrl()->getHostName()
2019-12-29 20:17:47 +01:00
nupplaPhil
2900389696
Remove deprecated App::getUrlPath - process methods to DI::baseUrl()->getUrlPath()
2019-12-29 20:17:46 +01:00
nupplaPhil
e93fba5136
Remove deprecated App::removeBaseURL - process methods to DI::baseUrl()->remove()
2019-12-29 20:17:45 +01:00
nupplaPhil
5609e94b05
Refactor deprecated App - process methods to DI::process()->*()
2019-12-29 20:17:45 +01:00
nupplaPhil
aedbdc536a
Refactor deprecated App::getArgumentValue() to DI::args()->get()
2019-12-29 20:17:44 +01:00
nupplaPhil
8b6e123b3f
Refactor deprecated App::isAjax() to DI::mode()->isAjax()
2019-12-29 20:17:44 +01:00
nupplaPhil
8e6973b774
Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect()
2019-12-29 20:17:43 +01:00
nupplaPhil
cc9b7bb14f
Refactor dynamic App::getDBA() to static DI::dba()
2019-12-29 20:17:43 +01:00
nupplaPhil
9cec293ccc
Refactor dynamic App::getMode() to static DI::mode()
2019-12-29 20:17:42 +01:00
nupplaPhil
181529f3df
Refactor dynamic App::getProfiler() to static DI::profiler()
2019-12-29 20:17:42 +01:00
nupplaPhil
e2b2778e0a
Refactor dynamic App::getLogger() to static DI::logger()
2019-12-29 20:17:41 +01:00
nupplaPhil
fceb4f3823
Refactor dynamic App::getConfig() to static DI::config()
2019-12-29 20:17:40 +01:00
nupplaPhil
aa5771cf3e
Move Login/Logout/TwoFactor to bundled submodule "Security"
2019-12-27 22:19:28 +01:00
Tobias Diekershoff
00756737b5
Merge branch 'master' 2019.12 into develop
2019-12-23 20:03:47 +01:00
Hypolite Petovan
77e00f11a7
Add type-hint to debug null value fatal error
...
- Part of https://github.com/friendica/friendica/issues/7675#issuecomment-566076500
2019-12-16 11:05:08 -05:00
nupplaPhil
26bd956912
Optimize L10n usage for Session (reduce "App" complexity even more)
2019-12-10 00:56:49 +01:00
nupplaPhil
555513e4b4
Add Session Management instances (including Depenency Injection)
...
- Prerequesite for mocking Sessions
- Reduce "App" class complexity
2019-12-10 00:44:56 +01:00
nupplaPhil
54392fab81
Move Cookie to own class (with tests)
...
Move Authentication to App namespace
2019-12-08 22:45:34 +01:00
nupplaPhil
96555a7385
Refactor "Authentication" class with four main methods:
...
- withSession() - for auto authentication with Session/Cookie variables
- withOpenId() - for authentication with an OpenID account
- withPassword() - for authentication with Password
- setForUser() - for setting the user auth context of the current session
Refactor "Session" class - contains now "native" Session Management methods
2019-12-05 23:02:51 +01:00
nupplaPhil
18a3d18ba6
Move Authentication methods to class "Authentication"
2019-12-05 23:02:50 +01:00
nupplaPhil
5bb63e59e0
Move App::internalRedirect to BaseUrl::redirect
2019-12-05 23:02:50 +01:00
Hypolite Petovan
ead0defb48
Rework theme override in Profile::load and App
...
- Separate desktop theme from mobile theme in App
2019-10-06 12:07:06 -04:00
Hypolite Petovan
4a5dfefacc
Move theme determination after full module run
2019-10-06 11:18:51 -04:00
Philipp Holzer
566889fbc0
fix alignment
2019-08-17 11:08:57 +02:00
Philipp Holzer
2c73377b39
Create Core\Process as a base for followup work
2019-08-17 09:09:13 +02:00
Philipp Holzer
90b438e082
Move mode settings to App\Mode
...
- Move isAjax() to App\Mode
- Move isTablet() to App\Mode
- Move isMobile() to App\Mode
- Refactor last usage of App->isBackend()
2019-08-17 09:09:13 +02:00
Philipp Holzer
eaed327c07
fix indentation
2019-08-16 09:10:05 +02:00
Philipp Holzer
30b69f1fc4
some fixings
2019-08-15 20:58:57 +02:00
Philipp Holzer
9f68e6b589
Add Page class for Frontend
...
- Move frontend logic (stylesheet, footerscript, content) to Page class
2019-08-15 20:52:42 +02:00
Philipp Holzer
822ba67105
Fixing https://github.com/friendica/friendica/pull/7508#issuecomment-521679624
2019-08-15 17:47:08 +02:00
Philipp Holzer
ccbb0241bf
Removed unnecessary auto-initializing
2019-08-15 17:27:05 +02:00
Philipp Holzer
956439a9f2
reverted wrong indentation
2019-08-15 17:25:03 +02:00
Philipp Holzer
734b63adba
Fixed wrong "BaseUrl" class (=> "BaseURL")
2019-08-15 17:23:35 +02:00
Philipp Holzer
08be92a862
Moved BaseURL to App namespace (because similar type as Arguments/Modules/Modes)
2019-08-15 17:23:00 +02:00
Philipp Holzer
fa1b783052
removed static Logger usage
2019-08-15 17:10:14 +02:00
Philipp Holzer
4f0ee4df27
Move $page initialization into constructor
2019-08-15 17:04:36 +02:00
Philipp Holzer
55f9dba230
Prepare App for further usage
2019-08-15 17:00:07 +02:00
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