src/Task/CompositeTaskFactory.php
private function getFactoryForType($taskType)
    {
        foreach ($this->factories as $factory) {
            if ($factory->isTypeSupported($taskType)) {
                return $factory;
            }
        }

        return null;
    }
private function getFactoryForType($taskType)
    {
        foreach ($this->factories as $factory) {
            if ($factory->isTypeSupported($taskType)) {
                return $factory;
            }
        }

        return null;
    }
private function getFactoryForType ( $ taskType ) { foreach ( $ this -> factories as $ factory ) { if ( $ factory -> isTypeSupported ( $ taskType ) ) { return $ factory ; } } return null ; }
Search the factory that can handle the type.

@param string $taskType The task type to search.

@return null|TaskFactoryInterface
Search the factory that can handle the type .