src/Importer.php
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;
    }
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;
    }
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 ; }
Get driver and replace current logger if driver has its own logger

@param $configTask
@param $source
@return DriverInterface
Get driver and replace current logger if driver has its own logger