public function matchArchiverByExtension($fileName)
    {
        /** @var \Thelia\Core\Archiver\AbstractArchiver $archiver */
        foreach ($this->archiverManager->getArchivers(true) as $archiver) {
            if (stripos($fileName, '.' . $archiver->getExtension()) !== false) {
                return $archiver;
            }
        }

        return null;
    }
public function matchArchiverByExtension($fileName)
    {
        /** @var \Thelia\Core\Archiver\AbstractArchiver $archiver */
        foreach ($this->archiverManager->getArchivers(true) as $archiver) {
            if (stripos($fileName, '.' . $archiver->getExtension()) !== false) {
                return $archiver;
            }
        }

        return null;
    }
public function matchArchiverByExtension ( $ fileName ) { /** @var \Thelia\Core\Archiver\AbstractArchiver $archiver */ foreach ( $ this -> archiverManager -> getArchivers ( true ) as $ archiver ) { if ( stripos ( $ fileName , '.' . $ archiver -> getExtension ( ) ) !== false ) { return $ archiver ; } } return null ; }
Match archiver relative to file name

@param string $fileName File name

@return null|\Thelia\Core\Archiver\AbstractArchiver
Match archiver relative to file name