Michael
fbac31edc5
Simplyfying code
2021-07-25 05:08:29 +00:00
Michael
0bbe954316
Getter/Setter for queue
2021-07-24 22:08:33 +00:00
Michael
866dbf9f89
Use getter/setter for timezone value
2021-07-24 21:16:53 +00:00
Michael
40a42ccdb1
Defining default value
2021-07-24 20:51:55 +00:00
Michael
eda2f95a66
Added documentation
2021-07-24 20:42:09 +00:00
Michael
8f46064430
Using getter/setter functions
2021-07-24 20:34:07 +00:00
Michael
30aad250df
App->contact is now removed
2021-07-24 11:49:11 +00:00
Michael
2502a9192d
Many more app-variables removed
2021-07-24 10:09:39 +00:00
Michael
050bc673aa
Issue 10264: Remote comments for visitors
2021-05-23 10:39:11 +00:00
Balázs Úr
054c301ef0
Update copyright
2021-03-29 08:40:20 +02:00
Hypolite Petovan
2922be68bf
Replace module output instead of redirecting to maintenance page
2021-03-10 09:50:20 -05:00
Michael
a81ac835a1
The frontend worker is removed
2021-01-01 23:05:26 +00:00
Michael
20ded2b35a
Parameters should be float ...
2020-12-10 00:02:23 +00:00
Michael
5fb83d0632
Improved performance profiler
2020-12-09 22:10:27 +00:00
Hypolite Petovan
9537a6d0f7
Remove unused App->force_max_items property
2020-10-13 07:52:13 -04:00
Michael
73a7df85f7
Issue 9303: Detect AP accesses as backend, prevent ping pong
2020-10-02 09:31:39 +00:00
Philipp
3a52179393
Move 'Authentication' to Security namespace
2020-09-30 16:53:18 +02:00
nupplaPhil
57587efe58
Move "getUserAgent()" to "HTTPRequest" class
2020-07-21 03:04:58 -04:00
nupplaPhil
85dc9bb96b
Add license info at Friendica PHP files
2020-02-09 16:18:46 +01:00
nupplaPhil
0e13428210
Move "App::getSenderEmailAddress()" to "Emailer::getSiteEmailAddress()"
2020-02-02 22:43:40 +01:00
nupplaPhil
d5a473abda
Shorten "PConfiguration" to "PConfig" again, since the Wrapper is gone
2020-01-19 22:23:44 +01:00
nupplaPhil
cb80108957
Shorten "Configuration" to "Config" again, since the Wrapper is gone
2020-01-19 21:29:36 +01:00
nupplaPhil
2838635d64
Move L10n class from L10n subdir to Core (replacing old wrapper)
2020-01-19 16:31:30 +01:00
Michael
0a4119adaf
@brief is removed completely
2020-01-19 06:05:23 +00:00
nupplaPhil
9e9429b56d
Move PConfig::get() to DI::pConfig()->get()
2020-01-18 16:50:57 +01:00
nupplaPhil
6d7362da41
Replace deprecated $a->page with DI::page()
2019-12-30 20:02:09 +01:00
nupplaPhil
c1dbb25656
Creating interfaces for Config/PConfig & fix tests
2019-12-29 20:18:19 +01:00
nupplaPhil
4835f1185f
Remove deprecated App::module - replace with DI::module()->getName()
2019-12-29 20:17:52 +01:00
nupplaPhil
33674808dc
Remove deprecated App::cmd - replace with DI::args()->getCommand()
2019-12-29 20:17:51 +01:00
nupplaPhil
e6f61c2cc7
Remove deprecated App::query_string - replace with DI::args()->getQueryString()
2019-12-29 20:17:50 +01:00
nupplaPhil
26af2feee2
Remove deprecated App::is_mobile/is_tablet - replace with DI::mode()->isMobile()/isTablet()
2019-12-29 20:17:50 +01:00
nupplaPhil
c7230932d6
Remove deprecated App::registerStylesheet()/FooterScript() - replace with DI::page()->registerStylesheet()/FooterScript()
2019-12-29 20:17:49 +01:00
nupplaPhil
302cbaa33c
Remove deprecated App::getScheme()
2019-12-29 20:17:48 +01:00
nupplaPhil
e944d7bed6
Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get()
2019-12-29 20:17:48 +01:00
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
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