summaryrefslogtreecommitdiffstats
path: root/core/register_command.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2016-01-15 14:14:32 +0100
committerLukas Reschke <lukas@owncloud.com>2016-01-20 20:38:18 +0100
commitea367b598a98f8889383c917ceb7a6deb0c6ab7f (patch)
tree251f6f3f274081b51496379a6d5816f90bd011f5 /core/register_command.php
parent647d8ea5decad8140f9c280ae90039aa71c4eb93 (diff)
downloadnextcloud-server-ea367b598a98f8889383c917ceb7a6deb0c6ab7f.tar.gz
nextcloud-server-ea367b598a98f8889383c917ceb7a6deb0c6ab7f.zip
Use path instead of app id
This change requires the usage of a path instead of the App ID when signing code. This has the advantage that developers can also sign code under a different location to make it easier. (e.g. remove `.git`, …) Also it adds an example command usage as well as a link to the documentation
Diffstat (limited to 'core/register_command.php')
-rw-r--r--core/register_command.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/register_command.php b/core/register_command.php
index e43994530b9..5f9a2675873 100644
--- a/core/register_command.php
+++ b/core/register_command.php
@@ -36,7 +36,8 @@ $application->add(new OC\Core\Command\App\CheckCode($infoParser));
$application->add(new OC\Core\Command\L10n\CreateJs());
$application->add(new \OC\Core\Command\Integrity\SignApp(
\OC::$server->getIntegrityCodeChecker(),
- new \OC\IntegrityCheck\Helpers\FileAccessHelper()
+ new \OC\IntegrityCheck\Helpers\FileAccessHelper(),
+ \OC::$server->getURLGenerator()
));
$application->add(new \OC\Core\Command\Integrity\SignCore(
\OC::$server->getIntegrityCodeChecker(),