Example #1
0
 public function test(DiscoverCacheHandler $discoverCacheHandler, ImageHandlerInterface $imageHandler, CacheHandlerInterface $cacheHandler, SearchHandlerInterface $searchHandler)
 {
     $generate = new GenerateThumbnails();
     $generate->handle($imageHandler, $cacheHandler, $searchHandler);
     $discoverCacheHandler->generateAll($searchHandler, $cacheHandler);
 }
 /**
  * Execute the console command.
  *
  * @param DiscoverCacheHandler $discoverCacheHandler
  * @param SearchHandlerInterface $searchHandler
  * @param CacheHandlerInterface $cacheHandler
  * @return mixed
  */
 public function handle(DiscoverCacheHandler $discoverCacheHandler, SearchHandlerInterface $searchHandler, CacheHandlerInterface $cacheHandler)
 {
     $discoverCacheHandler->generateAll($searchHandler, $cacheHandler);
 }