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
80f1feabe5
Refactoring Logging to use Configuration
2019-02-17 20:43:52 +01:00
Philipp Holzer
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
Philipp Holzer
cb791024e4
Refactor ConfigMockTrait to mocked ConfigCache
2019-02-07 20:44:03 +01:00
Philipp Holzer
800dbc7f44
Removed implicit ::getApp() instance and added docblock
2019-02-05 21:54:55 +01:00
Philipp Holzer
f779110154
Updating type-hints and some naming conventions
2019-02-04 09:32:13 +01:00
Philipp Holzer
d78ac57514
Updating type-hints and some naming conventions
2019-02-04 09:30:48 +01:00
Philipp Holzer
bc73d4bd2b
Adding descriptions
2019-02-03 23:39:30 +01:00
Philipp Holzer
4af0119b73
3) Introducing ConfigFactory
2019-02-03 22:22:04 +01:00
Philipp Holzer
5c50684b50
2) Refactor App->config[] into Core\PConfig
2019-02-03 19:32:31 +01:00
Philipp Holzer
d43a8184f4
2) Refactor App->config[] into Core\PConfig
2019-02-03 19:04:41 +01:00
Philipp Holzer
be6b229534
1) Refactor App->config[] into Core\Config
2019-02-03 18:54:25 +01:00
Hypolite Petovan
cb3f09ae4f
Refactor namespaces
...
- Remove unused use statements
- Add required use statements
- Escape global classes
2019-01-21 10:43:42 -05:00
Hypolite Petovan
3282ce5389
Fix PHPDoc comments project-wide
2019-01-21 10:35:51 -05:00
Hypolite Petovan
acaee626f5
Remove include/ requires that are now done directly from Composer
2018-12-24 09:56:25 -05:00
Philipp Holzer
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
Philipp Holzer
065340dc32
Creating Friendica\App\Mode for encapsulating the App Mode
2018-10-05 22:36:09 +02:00
Roland Häder
592190892c
Continued: ( #5508 )
...
- `App` is now "imported" to avoid having \Friendica\App::* everywhere
2018-07-26 22:27:28 -04:00
Michael Vogel
2fa6cc0000
Merge pull request #5394 from MrPetovan/bug/fix-config-set-return-value
...
Change (P)Config::set return value to bool
2018-07-18 11:07:10 +02:00
Hypolite Petovan
0f7c7cebeb
Change (P)Config::set return value to bool
2018-07-18 02:32:35 -04:00
Hypolite Petovan
cd9b864045
Rework App modes
...
- Replace App mode constants with capability-based flags
- Add App->isInstallMode()
- Add file config fallback in (P)Config abstraction
- Removed logger disabling code
2018-07-16 19:38:15 -04:00
Hypolite Petovan
fd7179ee6c
Prevent infinite loops with Config when App is in install mode
2018-07-16 19:38:13 -04:00
Hypolite Petovan
87f2d18554
Move *ConfigValue functions to App
2018-03-06 20:04:04 -05:00
Hypolite Petovan
6fec043375
Update Config class with adapter
2018-03-06 19:52:36 -05:00
Hypolite Petovan
e36f2bb1fb
Use short form array syntax everywhere
...
- Add short form array syntax to po2php.php generation
2018-01-15 14:07:17 -05:00
Hypolite Petovan
5fc4927764
Improve dba::selectFirst calls
...
- Fix remaining $r[0] references
- Rename $r to meaningful names
2018-01-11 03:43:57 -05:00
Hypolite Petovan
ae66bcaff3
Rename selectOne to selectFirst
2018-01-10 12:57:21 -05:00
Hypolite Petovan
da60893590
Replace dba::select(limit => 1) by dba::selectOne
...
- Convert array declarations to new style
2018-01-10 12:57:21 -05:00
Hypolite Petovan
819592c3bd
Fix Scrutinizer issues in mod [_well_know -> contactgroup]
...
- Remove unused variables and parameter
- Updated function documentation
- Fix formatting
- Add back uninitialized variables
- Simplify nested conditions
2018-01-04 19:42:48 -05:00
Hypolite Petovan
10b72b0e9e
PHPStan: Fix missing requires/namespaces
2017-12-17 15:26:43 -05:00
Hypolite Petovan
58ac3532b7
Fix undefined variables messages
2017-12-01 08:32:21 -05:00
Michael
774a7193d2
Added clarification
2017-11-26 11:43:02 +00:00
Adam Magness
d9e9cbe753
Coding Standards
...
A few updates for coding standards
2017-11-19 15:32:54 -05:00
Adam Magness
d7dc51ecc1
Coding Standards
...
Guess who got phpcs configured.
Updated phpcs.xml based on Developer_Intro document.
2017-11-08 17:02:50 -05:00
Adam Magness
4ca68c7af0
Class file relocations
...
Issue #3878
2017-11-08 08:37:03 -05:00
Adam Magness
6189f6c8e7
Relocate class files from /include to /src/
...
dbm, Diaspora, dfrn, and NotificationsManager moved to namespace. Includes and references in files updated.
2017-11-08 08:36:48 -05:00
Michael
33b61ab262
Database connections should be closed
2017-08-10 06:33:24 +00:00
Michael
69a3f66d56
Just more simplyfication
2017-08-09 21:34:39 +00:00
Michael
fce72cbbc8
Modifed "update" and "insert" function / many changed queries
2017-08-09 21:12:41 +00:00
Michael
a5e7f7bf70
We don't need an order.
2017-08-09 07:57:33 +00:00
Michael
64718b53d1
Works now
2017-08-09 06:16:19 +00:00
Michael
ae8098eaf2
Config now works with the new database routines
2017-08-09 05:53:07 +00:00
Hypolite Petovan
9c0d2c31e8
Replace AND and OR in PHP conditions by && and ||
2017-06-07 22:00:59 -04:00
Hypolite Petovan
799e60aa62
Replace existing autoloader with Composer-supplied
...
- Move Friendica namespace to `src`
- Move required `ezyang/htmlpurifier` to vendor
- Remove existing static autoloader
- Change boot.php reference to the autoloader
2017-03-31 23:02:38 -04:00