File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ private function initialize_services( Container $container ) {
54
54
* @param \NewfoldLabs\WP\Container\Container $container Dependency injection container.
55
55
*/
56
56
private function initialize_upload_listener ( $ container ) {
57
- new ImageUploadListener ( ImageSettings::is_auto_delete_enabled (), $ container );
57
+ new ImageUploadListener ( $ container , ImageSettings::is_auto_delete_enabled () );
58
58
}
59
59
60
60
/**
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ class ImageUploadListener {
29
29
* @param bool $delete_original Whether to delete the original file after optimization.
30
30
* @param \NewfoldLabs\WP\Container\Container $container Dependency injection container.
31
31
*/
32
- public function __construct ( $ delete_original = false , $ container ) {
32
+ public function __construct ( $ container , $ delete_original = false ) {
33
33
$ this ->image_service = new ImageService ( $ container );
34
34
$ this ->delete_original = $ delete_original ;
35
35
$ this ->register_hooks ();
You can’t perform that action at this time.
0 commit comments