' +
+ var proto_img = '
';
var payment_image = $('#{{ form.payment_image.vars.id }}').val();
@@ -57,7 +57,7 @@ file that was distributed with this source code.
} else {
var path = '{{ asset('', 'temp_image') }}' + filename;
}
- var $img = $(proto_img.replace(/__path__/g, path));
+ var $img = $(proto_img).css('background-image', 'url(' + path + ')');
$('#{{ form.payment_image.vars.id }}').val(filename);
$('#thumb').append($img);
@@ -73,7 +73,7 @@ file that was distributed with this source code.
done: function(e, data) {
$('.progress').hide();
var path = '{{ asset('', 'temp_image') }}/' + data.result.filename;
- var $img = $(proto_img.replace(/__path__/g, path));
+ var $img = $(proto_img).css('background-image', 'url(' + path + ')');;
$('#{{ form.payment_image.vars.id }}').val(data.result.filename);
$('#thumb').append($img);
diff --git a/src/Eccube/Service/Composer/ComposerApiService.php b/src/Eccube/Service/Composer/ComposerApiService.php
index ae818a58757..1f32617afa9 100644
--- a/src/Eccube/Service/Composer/ComposerApiService.php
+++ b/src/Eccube/Service/Composer/ComposerApiService.php
@@ -113,6 +113,7 @@ public function execRequire($packageName, $output = null)
'--prefer-dist' => true,
'--update-with-dependencies' => true,
'--no-scripts' => true,
+ '--update-no-dev' => env('APP_ENV') === 'prod',
], $output);
}
@@ -141,6 +142,7 @@ public function execRemove($packageName, $output = null)
'--no-interaction' => true,
'--profile' => true,
'--no-scripts' => true,
+ '--update-no-dev' => env('APP_ENV') === 'prod',
], $output);
}
@@ -162,6 +164,7 @@ public function execUpdate($dryRun, $output = null)
'--profile' => true,
'--no-scripts' => true,
'--dry-run' => (bool) $dryRun,
+ '--no-dev' => env('APP_ENV') === 'prod',
], $output);
}
@@ -183,6 +186,7 @@ public function execInstall($dryRun, $output = null)
'--profile' => true,
'--no-scripts' => true,
'--dry-run' => (bool) $dryRun,
+ '--no-dev' => env('APP_ENV') === 'prod',
], $output);
}
diff --git a/symfony.lock b/symfony.lock
index 1148a1488af..79da07acd85 100644
--- a/symfony.lock
+++ b/symfony.lock
@@ -191,9 +191,6 @@
"ocramius/proxy-manager": {
"version": "2.1.1"
},
- "paragonie/random_compat": {
- "version": "v2.0.11"
- },
"phar-io/manifest": {
"version": "1.0.1"
},