code: public function getDriver($configTask, $source)
       {
          $driverFactory = $this->getDriverCreator();
          /** @var DriverInterface $driver */
          $driver = $driverFactory->create($configTask);
          $driver->source($source);
  
          if (method_exists($driver, 'getLogger') && $driver instanceof LoggerAwareInterface) {
              $this->logger = $driver->getLogger();
          }
  
          return $driver;
      }
docs: Get driver and replace current logger if driver has its own logger
  
  @param $configTask
  @param $source
  @return DriverInterface