* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Inpsyde\Restore\Log; /** * @author Guido Scialfa */ class LevelExtractorFactory { /** * Create instance of LevelExtractor. * * Unfortunately BWU doesn't make use of services so we have to fallback to a Factory */ public function create(): LevelExtractor { $fileReader = new FileReader(); $logLineParser = new LogLineParser(); return new LevelExtractor($fileReader, $logLineParser); } }