Commit graph

304 commits

Author SHA1 Message Date
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
14e7686df4
Merge pull request from annando/avoid-flooding
Avoid beeing flooded by invalid requests
2018-10-13 08:41:32 +02:00
b6f2144237 Avoid beeing flooded by invalid requests 2018-10-13 04:31:37 +00:00
5a02e39a65
Rename App Methods
- renamed a lot of App methods to CamelCase
- replaced direct public variables with get-/set-Methods
2018-10-10 00:16:06 +02:00
31148e25cf
Changing Friendica\App\Mode from static methods to public methods
- Changing from static methods to public methods
- Adding dev-composer-dependency Mockery for static method mocking (f.e. Config, DBA)
- Adding ModeTest with Mocking
- removing bootstrap from phpunit.xml because of double loading tests\bootstrap.php
2018-10-06 16:27:20 +02:00
3ed9e7fe1d Replace remaining $a->isInstallMode() instances 2018-10-05 20:31:32 -04:00
3564daf24d
Merge pull request from nupplaphil/mode_class
Creating Friendica\App\Mode for encapsulating the App Mode
2018-10-05 20:07:39 -04:00
d72473fd51
moving boot::check_addons to Friendica\Core\Addon::check
And extending Addon from BaseObject because of self::getApp()
2018-10-06 01:13:29 +02:00
065340dc32
Creating Friendica\App\Mode for encapsulating the App Mode 2018-10-05 22:36:09 +02:00
505350c9fb
Merge pull request from annando/ap1
ActivityPub support
2018-10-02 11:24:04 -04:00
fdc396e197 "rawcontent" is now a baseobject method 2018-09-30 20:47:28 +00:00
0769a115aa Avoiding a notice 2018-09-30 20:40:40 +00:00
a8b776c189 There is now "rawContent" for technical endpoints 2018-09-30 13:15:10 +00:00
cb44aa83c7 Object instead of Display 2018-09-30 12:21:57 +00:00
214407bdc8 Improve communication 2018-09-22 14:12:54 +00:00
Benjamin Lorteau
f0cdd25e34 Register Friendica stylesheet using App->registerStylesheet()
- Remove mentions of {{$stylesheet}} in head.tpl templates
2018-09-21 09:54:09 -04:00
Hypolite Petovan
2ae6556b32 Add new 'head' hook
- Add new App->registerStylesheet method
- Reworked App->init_pagehead into App->initHead
2018-09-20 21:30:51 -04:00
Hypolite Petovan
30f8fb82b6 Cleanup index.php
- Removed deprecated killme() calls
- Removed deprecated x() calls
2018-09-20 21:05:23 -04:00
Hypolite Petovan
55f1d7b90e Add new footer hook
- Add new App->footerScripts array
- Add footer.tpl template
- Add documentation
- Rework App->init_page_end to App->initFooter
2018-09-20 21:01:05 -04:00
4921303133 Issue 5541: Don't do magic things when the remote site doesn't support it 2018-08-06 19:59:41 +00:00