Joas Schilling
5bb6a7804f
fix: Move AppManager events to IEventDispatcher
Signed-off-by: Joas Schilling <coding@schilljs.com>
11 months ago
Thomas Citharel
f1751c4428
Introduced app enable/disable/update typed events
OCP\App\ManagerEvent is depreciated since 22 without a replacement
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
1 year ago
szaimen
1d17a0843a
set theming app to alwaysEnabled
Signed-off-by: szaimen <szaimen@e.mail.de>
1 year ago
Joas Schilling
df47445c01
Fix unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years ago
Christoph Wurst
28f8eb5dba
Add visibility to all constants
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
Christoph Wurst
caff1023ea
Format control structures, classes, methods and function
To continue this formatting madness, here's a tiny patch that adds
unified formatting for control structures like if and loops as well as
classes, their methods and anonymous functions. This basically forces
the constructs to start on the same line. This is not exactly what PSR2
wants, but I think we can have a few exceptions with "our" style. The
starting of braces on the same line is pracrically standard for our
code.
This also removes and empty lines from method/function bodies at the
beginning and end.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
Christoph Wurst
b80ebc9674
Use the short array syntax, everywhere
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
Christoph Wurst
2ee65f177e
Use the shorter phpunit syntax for mocked return values
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
Joas Schilling
dc7913efcd
Fix recursive calls in logging via server methods
Signed-off-by: Joas Schilling <coding@schilljs.com>
4 years ago
Joas Schilling
3eee359d7f
Allow to force enable apps via CLI
Co-authored-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
John Molakvoæ (skjnldsv)
edf8893479
Fix tests
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
4 years ago
Roeland Jago Douma
68748d4f85
Some php-cs fixes
* Order the imports
* No leading slash on imports
* Empty line before namespace
* One line per import
* Empty after imports
* Emmpty line at bottom of file
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
4 years ago
Christoph Wurst
de6940352a
Move settings to an app
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
4 years ago
Morris Jobke
99f2c82222
Properly inject the logger
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
5 years ago
Bjoern Schiessle
511a34b08f
always enable cloud federation api
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
6 years ago
Robin Appelman
46d0d0cda1
fix appinfo parsing when a single localized option is provided
Signed-off-by: Robin Appelman <robin@icewind.nl>
6 years ago
Morris Jobke
9dc3b04802
Fix app version to be always string and neither array nor null
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 years ago
Roeland Jago Douma
09f8a755ec
Remove IAppConfig::getValue
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
6 years ago
Lukas Reschke
7a8bd73547
Fix tests
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
7 years ago
Joas Schilling
fcfb4205bc
Fix tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Lukas Reschke
d001dbd259
Adjust unit tests
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
7 years ago
Lukas Reschke
fb91bf6a5b
Add a signer class for signing
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
7 years ago
Lukas Reschke
8acb54aa0b
Add update support
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
7 years ago
Joas Schilling
0b1fb180a5
Make AppConfig part of the public API
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Joas Schilling
122edcd0c1
Make sure all tests use the TestCase method to overwrite services
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Roeland Jago Douma
9404c04512
Fix getMock AppTests
7 years ago
Roeland Jago Douma
581a83c2a1
Fix AppTest and intergration test
7 years ago
Morris Jobke
9c21067c19
fix enabled apps tests
8 years ago
Morris Jobke
6482be040b
fix unit tests
8 years ago
Joas Schilling
55fc6536d3
FIx lib/ a-d
8 years ago
Morris Jobke
7048d428b1
Remove unneeded parameter from OC_App::getEnabledApps
8 years ago
Arthur Schiwon
cd00751de5
Send events when enabling and disabling of apps
8 years ago
Roeland Jago Douma
fad85ad19f
Fix unit tests
8 years ago
Morris Jobke
190cc2bb67
Remove OC_DB::getConnection
8 years ago
Thomas Müller
3bb6dcea64
Apply DB group annotation ...
8 years ago
Morris Jobke
bc69cb2de3
fix unit tests
8 years ago
Thomas Müller
aae55174f6
Only do the description kung-fu on strings - fixes #17028
9 years ago
Lukas Reschke
aff55347f9
Use UTF-8 mode for preg_split and preg_replace
Otherwise a single application with a description containing a non compliant character can break the whole ownCloud appstore. This is for example https://apps.owncloud.com/content/show.php?content=149553
Fixes https://github.com/owncloud/core/issues/17101#issuecomment-117365224
9 years ago
Joas Schilling
aa6573cf54
Adjust tests and check whether clear() is called
9 years ago
Robin Appelman
4d805b52cc
Test improvements
9 years ago
Robin Appelman
23ab25e93a
Use the app manager from oc_app
9 years ago
Morris Jobke
520d8ec53b
OC_App::parseAppInfo
* replace line breaks (on non empty lines) in the app description by spaces
* fixes #13315
* includes unit tests
9 years ago
Joas Schilling
4b3a3dc0bb
Check new and old ways of required oC version for app compatibility
9 years ago
Joas Schilling
cb3a598cdb
Make root tests extend the \Test\TestCase
9 years ago
Joas Schilling
289a27778e
Correctly refresh the apps list after removing the mock
9 years ago
Robin Appelman
1eefc21329
Remove confusingly names \OC\User\Manager::delete and fix the automatic cache cleanup instead
9 years ago
Vincent Petry
4a93a6e060
Added unit tests for cache of enabled apps
9 years ago
Vincent Petry
e05b95636b
Fix upgrade process when apps enabled for specific groups
Fix issue where the currently logged user was causing side-effects when
upgrading.
Now setting incognito mode (no user) on update to make sure the whole
apps list is taken into account with getEnabledApps() or isEnabled().
9 years ago
Vincent Petry
d43a7c5f6e
Added requiremin/requiremax fields for apps
Apps can now specify a minimum and maximum version of ownCloud in which
they are supported.
10 years ago
Bernhard Posselt
1d45239c65
adjust license headers to new mail address
10 years ago