Skip to content

Commit

Permalink
composer dependency on spid-php-lib, update & include vendor
Browse files Browse the repository at this point in the history
this pulls in the spid-php-lib from a temporary side-branch until italia/spid-php-lib#66 gets merged
it is self-documenting on which version of spid-php-lib we're bundling (just look in composer.json)
the supplied bundle.sh script can be used by the maintainer to update the bundled copy of spid-php-lib in an automated way, guaranteeing it is a 1-to-1 copy of the original
for an authentication-related plugin like this one, we need to make the build reproducible and to self-document all files not written by us which land into the plugin
  • Loading branch information
Paolo Greppi committed Oct 22, 2018
1 parent 33ce29f commit ed0dd02
Show file tree
Hide file tree
Showing 38 changed files with 5,709 additions and 262 deletions.
10 changes: 10 additions & 0 deletions bundle.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh
# This script can be used to make it easier to upgrade the spid-php-lib dependency of this plugin
# Run it from the root of the project

set -e
rm -rf spid-php-lib
composer install --no-dev
rsync -rvx vendor/italia/spid-php-lib .
cd spid-php-lib
composer install --no-dev
11 changes: 9 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,15 @@
"name": "Paolo Greppi",
"email": "[email protected]"
}],
"repositories": [
{
"type": "vcs",
"url": "https://github.com/italia/spid-php-lib"
}
],
"require": {

"php": ">=7.0",
"italia/spid-php-lib": "dev-feature/issue-65-certs#0b58ecd32b4909ff207f2a47b3dcac8b7507b2fb as 0.30.0"
},
"require-dev": {
"squizlabs/php_codesniffer": "*",
Expand All @@ -35,4 +42,4 @@
"phpcbf": "Fix coding standards warnings/errors automatically with PHP Code Beautifier"
}
}
}
}
Loading

0 comments on commit ed0dd02

Please sign in to comment.