@@ -99,7 +99,7 @@ |
||
99 | 99 | $path = '/'.$media->getRelativeDir().'/'.$media->getMedia(); |
100 | 100 | $this->storeImageInCache($path, $this->getBinary($path), 'default'); |
101 | 101 | |
102 | - $this->eventDispatcher->addListener(KernelEvents::TERMINATE, function (EventDispatcher $event) use ($mapping, $media) { |
|
102 | + $this->eventDispatcher->addListener(KernelEvents::TERMINATE, function(EventDispatcher $event) use ($mapping, $media) { |
|
103 | 103 | $this->generateCache($media); |
104 | 104 | }); |
105 | 105 | } |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | $webPConverterOptions = self::$webPConverterOptions; |
114 | 114 | $projectDir = $this->projectDir; |
115 | 115 | |
116 | - $this->pool->add(function () use ($projectDir, $path, $pathJpg, $pathWebP, $webPConverterOptions, $filter) { |
|
116 | + $this->pool->add(function() use ($projectDir, $path, $pathJpg, $pathWebP, $webPConverterOptions, $filter) { |
|
117 | 117 | // took 46s (vs 43s) to add liip generation in async |
118 | 118 | //exec($projectDir.'/bin/console liip:imagine:cache:resolve "'.$path.'" --force --filter='.$filter.' >/dev/null 2>&1 &'); |
119 | 119 | self::imgToWebPStatic($pathJpg, $pathWebP, $webPConverterOptions, $filter); |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | $source = $this->projectDir.$media->getPath(); |
127 | 127 | //self::createWebPStatic($destination, $source); |
128 | 128 | |
129 | - $this->pool->add(function () use ($destination, $source) { |
|
129 | + $this->pool->add(function() use ($destination, $source) { |
|
130 | 130 | self::createWebPStatic($destination, $source); |
131 | 131 | }); |
132 | 132 | } |