aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Console/Application.php
Commit message (Collapse)AuthorAgeFilesLines
* fix: Replace getInstalledApps calls with getEnabledAppsfix/clarify-app-manager-methodsCôme Chilliet2025-02-131-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: when already upgrading, don't instruct to run `occ upgrade`occ-upgrade-reminderJosh2025-02-051-1/+1
| | | | | Fixes #36289 Signed-off-by: Josh <josh.t.richards@gmail.com>
* chore(legacy): Introduce public version ct plass and drop version methods ↵clean/version-ocpJulius Knorr2024-09-201-1/+3
| | | | | | from OC_Util Signed-off-by: Julius Knorr <jus@bitgrid.net>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-191-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore: Code cleanup in lib/private/Console/ApplicationThomas Citharel2024-09-101-10/+15
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-6/+6
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-241-27/+4
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: Migrate away from OC_App toward the IAppManagerCôme Chilliet2024-04-221-22/+15
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-021-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge branch 'master' into refactor/OC-Server-getThemingDefaultsJohn Molakvoæ2024-02-231-17/+17
|\ | | | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| * make failure to load app commands non-fatalRobin Appelman2024-02-021-1/+8
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-4/+4
| | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
| * Cleanup plsam issues in DB/ContactsManager and ConsoleCarl Schwan2023-09-051-12/+5
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Refactor `OC\Server::getThemingDefaults`Andrew Summers2023-08-291-1/+1
|/ | | | Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
* chore: Replace \OC::$server->query with \OCP\Server::get in /libChristoph Wurst2023-07-061-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* feat(admin_audit): Migrate to non-deprecated IEventDispatcherJoas Schilling2023-07-041-5/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix: change maintenance mode info wordingDaniel Kesselberg2023-04-261-7/+3
| | | | | | In maintenance mode the database is accessible and it's possible to execute other commands then maintenance:mode Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Use typed version of IConfig::getSystemValue as much as possibleCôme Chilliet2023-04-051-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(PHP8.2): Declare Symfony Application property in console applicationChristoph Wurst2023-01-161-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Implement occ status command via return codes (Fixes: #35704)Lee Garrett2023-01-031-1/+2
| | | | | | | | | | Running `./occ status -e` will produce any output. However, it will: exit 0 during normal operation, exit 1 when in maintenance mode, exit 2 when `./occ upgrade` is needed. Signed-off-by: Lee Garrett <lgarrett@rocketjump.eu>
* Remove OCP\App and OCP\BackgroundJobCarl Schwan2022-08-011-2/+4
| | | | | | | | | | Both deprecated since NC 23 IAppManager is the replacement for OCP\App unfortunately it can't be dependency injected in classes used by the installed otherwise the database connection is initialised too early Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Write upgrade/not-installed notices to stderrJulius Härtl2021-08-181-3/+5
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Improve maintenance mode infoszaimen2021-07-021-2/+2
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Less ILoggerJoas Schilling2021-04-271-11/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* forward query exception when fallback construction failsRobin Appelman2021-02-091-1/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-1/+1
| | | | | | | | | | | | | | | 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>
* Use elseif instead of else ifChristoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-0/+1
| | | | | | | | | | | * 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>
* Make sure maintenance mode is always casted to boolJoas Schilling2019-02-221-5/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Refactor some codeMorris Jobke2018-08-211-15/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Adds a memory limit warning for console commands if the limit is below the ↵Michael Weimann2018-08-201-1/+29
| | | | | | recommended value Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* Disables the maintenance warning for the maintenance command itself.Michael Weimann2018-07-011-6/+29
| | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* Do not show "Not installed warning" during occ installMorris Jobke2018-01-181-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-061-1/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fixed typoMiha Frangez2017-05-191-1/+1
|
* Remove unused use statementsMorris Jobke2017-04-221-1/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* ownC -> NextcMorris Jobke2017-03-191-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* maintenance warning printed on STDERR rather than STDOUTnoveens2017-03-191-1/+3
| | | | | | redundant check removed Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use SystemConfig instead of AllConfig for DB stuffMorris Jobke2017-03-191-1/+1
| | | | | | * preparation for followup PRs to clean up the DB bootstrapping Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* handle errors in apps while registering commandsRobin Appelman2016-11-241-2/+11
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add upgrade command before repair, handle NeedsUpgradeExcaption betterJörn Friedrich Dreyer2016-10-241-29/+34
|
* [9.2] Register commands in info.xml (#26248)Thomas Müller2016-10-111-2/+23
| | | | | | | | | | | | * Use DI to load console commands from the apps - class name to be defined in the info.xml * Load commands from info.xml * Fix unit test * Allow Di magic for IMountManager Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Do not break the output when running _completionJoas Schilling2016-09-291-5/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Correct name in Console Application.phpblizzz2016-08-041-3/+3
| | | see changes :)
* Fix othersJoas Schilling2016-07-211-2/+3
|
* Use the themed Defaults everywhereJoas Schilling2016-07-151-2/+2
|
* Revert "occ web executor (#24957)"Morris Jobke2016-07-071-2/+1
| | | | This reverts commit 854352d9a064a1e469ede207493bce44fd41d96c.