src/Phlexible/Component/MediaCache/Worker/WorkerResolver.php
public function resolve(TemplateInterface $template, InputDescriptor $input, MediaType $mediaType)
    {
        foreach ($this->workers as $worker) {
            if ($worker->accept($template, $input, $mediaType)) {
                return $worker;
            }
        }

        return null;
    }
public function resolve(TemplateInterface $template, InputDescriptor $input, MediaType $mediaType)
    {
        foreach ($this->workers as $worker) {
            if ($worker->accept($template, $input, $mediaType)) {
                return $worker;
            }
        }

        return null;
    }
public function resolve ( TemplateInterface $ template , InputDescriptor $ input , MediaType $ mediaType ) { foreach ( $ this -> workers as $ worker ) { if ( $ worker -> accept ( $ template , $ input , $ mediaType ) ) { return $ worker ; } } return null ; }
Determine and return worker.

@param TemplateInterface $template
@param InputDescriptor   $input
@param MediaType         $mediaType

@return WorkerInterface
Determine and return worker .