Skip to content

Commit

Permalink
Composer Configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ksainc committed Dec 28, 2023
1 parent fd1c518 commit b3c351d
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 671 deletions.
20 changes: 10 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
"role": "Just another Minion in the cogs of time"
}
],
"require-dev": {
"phpunit/phpunit": "^9",
"sabre/dav": "^4.1",
"sabre/xml": "^2.2",
"symfony/event-dispatcher": "^5.3.11",
"christophwurst/nextcloud": "dev-master@dev",
"psalm/phar": "^4.10",
"nextcloud/coding-standard": "^1.0"
"repositories": [
{
"type":"vcs",
"url": "https://github.com/ksainc/jmap-client-php"
}
],
"require" : {
"ksainc/jmap-client-php": "dev-main"
},
"scripts": {
"lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l",
Expand All @@ -32,10 +32,10 @@
},
"config": {
"allow-plugins": {
"composer/package-versions-deprecated": true
"composer/package-versions-deprecated": false
},
"platform": {
"php": "8.1"
"php": "8.0"
}
}
}
77 changes: 77 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ class Application extends App implements IBootstrap {
public const APP_ID = 'integration_jmapc';

public function __construct(array $urlParams = []) {
if ((@include_once __DIR__ . '/../../vendor/autoload.php') === false) {
throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
}

parent::__construct(self::APP_ID, $urlParams);

// retrieve harmonization mode
Expand Down
Loading

0 comments on commit b3c351d

Please sign in to comment.