1
0
Fork 0
Commit graph

323 commits

Author SHA1 Message Date
Balázs Úr
e56a53647b Update copyright 2022-01-02 08:27:47 +01:00
9cec38f916 Make HTTPInputData dynamic
- Removing DI:: dependency inside App class
- Making testability easier & adapting tests
2021-11-30 01:07:59 -05:00
b5d2d32b44
Split and delete ModuleController
- $moduleName is part of the argument string => App\Arguments
- $isBackend boolean already part of App\Mode::isBackend()
- $module is now the direct return of App\Router::getModule()
- ModuleController::run() moved to BaseModule::run()
2021-11-27 12:39:45 +01:00
c95d47b0b4
Refactor App\Module to App\ModuleController and rename properties 2021-11-16 22:40:39 +01:00
018275919c
Create interface for static Module calls 2021-11-14 23:30:04 +01:00
b216317477
Refactoring Core class structures ... 2021-10-26 22:11:09 +02:00
acb06af28d
Add extended ErrorHandling 2021-10-23 20:58:38 +02:00
Balázs Úr
054c301ef0 Update copyright 2021-03-29 08:40:20 +02:00
9a6141dcbe Use "pcntl_fork" to fork processes 2021-01-01 19:35:29 +00:00
5fb83d0632 Improved performance profiler 2020-12-09 22:10:27 +00:00
3a52179393
Move 'Authentication' to Security namespace 2020-09-30 16:53:18 +02:00
nupplaPhil
85dc9bb96b
Add license info at Friendica PHP files 2020-02-09 16:18:46 +01:00
d5a473abda
Shorten "PConfiguration" to "PConfig" again, since the Wrapper is gone 2020-01-19 22:23:44 +01:00
4d8d4ad958
Add parameter to index -> runFrontend() 2019-12-30 20:20:41 +01:00
c1dbb25656
Creating interfaces for Config/PConfig & fix tests 2019-12-29 20:18:19 +01:00
388b963714
Replace BaseObject class with DI::* calls 2019-12-29 20:17:38 +01:00
1de3f186d7
Introduce new DI container
- Adding Friendica\DI class for getting dynamic classes
- Replacing BaseObject::getApp() with this class
2019-12-29 20:16:55 +01:00
54392fab81
Move Cookie to own class (with tests)
Move Authentication to App namespace
2019-12-08 22:45:34 +01:00
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
Philipp Holzer
b13dbb3dcb
Remove $_SERVER['PHP_SELF'] usage 2019-09-17 16:47:00 +02:00
Philipp Holzer
0af9747c6c
Add Arguments & Modules class 2019-08-13 16:29:11 +02:00
fcb1a78352
Revert "Introduce Arguments / Module class" 2019-08-11 18:01:11 -04:00
Philipp Holzer
df5ffea15b
line break call 2019-08-11 17:46:19 +02: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
9682cc440c
Using method-chaining for DICE 2019-08-05 09:03:12 +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
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
9fa812b35d
Rewrites:
- converted single-line if() block to multi-line and with curly braces
- "imported" SPL classes to have unified code style
- always initialize your variables ... :-/
- added some empty lines/spaces for better readability

Signed-off-by: Roland Häder <roland@mxchange.org>
2019-02-19 01:56:41 +01:00
218e41a818
Bugfixing index.php 2019-02-18 00:53:00 +01:00
bfed7b3b2f
removing comment 2019-02-17 21:43:19 +01:00
cdcf1667d7
Adding DependencyFactory 2019-02-17 20:45:39 +01:00
80f1feabe5
Refactoring Logging to use Configuration 2019-02-17 20:43:52 +01:00
eafcf3592d
Config FollowUp
- New Configuration (Config is now only holding the instance)
- New PConfiguration (PConfig is now only holding the instance)

- Config & PConfig-Adapter don't need "ConfigCache" anymore

- DB-Connection is now outside App->reload() for better dependency-chaining
2019-02-17 20:40:27 +01:00
cb1ad4287d
adding parameter to App 2019-02-16 23:18:24 +01:00
5e6e1a8025
Introducing Profiler 2019-02-16 23:11:30 +01:00
6a9d73f7d9
Refactoring ConfigCacheLoader methods 2019-02-05 22:27:57 +01:00
4af0119b73
3) Introducing ConfigFactory 2019-02-03 22:22:04 +01:00
2e602afd3e Add Monolog 2019-01-21 10:10:40 -05:00
2f49c4a058 Revert "Add monolog" 2019-01-21 10:08:09 -05:00
651834f7d1 Change channel "app" to "index" 2019-01-21 10:00:48 -05:00
8f9c0fe149 Adding Develop and normal Logging instances 2019-01-21 09:59:08 -05:00
fe8f0e0045 Add Monolog 2019-01-21 09:58:05 -05:00
Jeroen De meerleer
df386800d3 I'm wishing you and your family a very happy christmas 2019-01-21 09:47:46 -05:00
3b5f55d3c6 Check if the vendor path is missing and complain about it 2019-01-18 19:10:05 +00:00
5ddf3898db Avoid a WSOD after PR 6315 2018-12-27 17:17:02 +00:00
ed7bada71e Move Composer autoload require out of boot.php 2018-12-24 09:56:48 -05:00
279196959c Move index.php content to App->runFrontend
- Replace all x() by !empty() in App
- Replace all killme() with exit()
2018-10-21 22:24:47 -04:00
b27ff9d2b7 Remove direct module function calls in index.php 2018-10-20 22:34:55 -04:00
4392858662
Move Global Functions - Part 3
- Replaced every CACHE definition
- Moved check_url to App->checkURL()
- Removed unused definition "ZCURL_TIMEOUT"
2018-10-20 18:19:55 +02:00
3c48a1f787 AP: Announce will now work 2018-10-13 16:41:29 +00:00