File tree Expand file tree Collapse file tree 6 files changed +1012
-8
lines changed
Expand file tree Collapse file tree 6 files changed +1012
-8
lines changed Original file line number Diff line number Diff line change 66 "license" : " GPL-3.0-or-later" ,
77 "prefer-stable" : true ,
88 "minimum-stability" : " dev" ,
9+ "autoloader-suffix" : " GravityFormsUploadAzure" ,
910 "require" : {
1011 "php" : " >=7.2" ,
1112 "microsoft/azure-storage-file" : " ~1.2.4" ,
2324 " ./vendor/bin/phpcs ."
2425 ],
2526 "build" : [
26- " @composer install"
27+ " @composer install" ,
28+ " @composer dump-autoload --no-scripts --optimize --classmap-authoritative"
29+ ],
30+ "scoper" : [
31+ " cd php-scoper && composer install" ,
32+ " rm -rf ./vendor-prefixed/" ,
33+ " ./php-scoper/vendor/bin/php-scoper add-prefix --config ./php-scoper/scoper.inc.php --force --output-dir ./vendor-prefixed/" ,
34+ " @putenv COMPOSER_VENDOR_DIR=./vendor-prefixed/" ,
35+ " @composer dump-autoload --no-scripts --optimize --classmap-authoritative"
2736 ]
2837 }
2938}
Original file line number Diff line number Diff line change 1818define ( 'DEKODE_GRAVITYFORMS_AZURE_VERSION ' , '1.1.0 ' );
1919define ( 'DEKODE_GRAVITYFORMS_AZURE_DIR_PATH ' , plugin_dir_path ( __FILE__ ) );
2020
21- if ( file_exists ( __DIR__ . '/vendor/autoload.php ' ) ) {
22- require_once __DIR__ . '/vendor/autoload.php ' ;
21+ if ( file_exists ( __DIR__ . '/vendor-prefixed /autoload.php ' ) ) {
22+ require_once __DIR__ . '/vendor-prefixed /autoload.php ' ;
2323}
2424
2525add_action ( 'gform_loaded ' , function () {
Original file line number Diff line number Diff line change 99
1010namespace Dekode \GravityForms \Azure ;
1111
12- use MicrosoftAzure \Storage \Common \Exceptions \ServiceException ;
13- use MicrosoftAzure \Storage \Blob \BlobRestProxy ;
14- use MicrosoftAzure \Storage \Blob \Models \CreateBlockBlobOptions ;
15- use MicrosoftAzure \Storage \Blob \Models \CreateContainerOptions ;
16- use MicrosoftAzure \Storage \Blob \Models \PublicAccessType ;
12+ use Dekode \ GravityForms \ Vendor \ MicrosoftAzure \Storage \Common \Exceptions \ServiceException ;
13+ use Dekode \ GravityForms \ Vendor \ MicrosoftAzure \Storage \Blob \BlobRestProxy ;
14+ use Dekode \ GravityForms \ Vendor \ MicrosoftAzure \Storage \Blob \Models \CreateBlockBlobOptions ;
15+ use Dekode \ GravityForms \ Vendor \ MicrosoftAzure \Storage \Blob \Models \CreateContainerOptions ;
16+ use Dekode \ GravityForms \ Vendor \ MicrosoftAzure \Storage \Blob \Models \PublicAccessType ;
1717
1818/**
1919 * Controller to process all requests to work with Azure Storage
Original file line number Diff line number Diff line change 1+ {
2+ "minimum-stability" : " dev" ,
3+ "prefer-stable" : true ,
4+ "require-dev" : {
5+ "humbug/php-scoper" : " ~0.14.1" ,
6+ "pxlrbt/php-scoper-prefix-remover" : " ~0.1.0"
7+ }
8+ }
You can’t perform that action at this time.
0 commit comments