src/Micrometa/Infrastructure/Factory/ParserFactory.php
public static function createParsersFromFormats($formats, UriInterface $uri, LoggerInterface $logger)
    {
        $formatBits = intval($formats);

        // Run through all registered parsers and yield the requested instances
        foreach (self::$parsers as $parserFormat => $parserClass) {
            if ($parserFormat & $formatBits) {
                yield $parserFormat => new $parserClass($uri, $logger);
            }
        }
    }
public static function createParsersFromFormats($formats, UriInterface $uri, LoggerInterface $logger)
    {
        $formatBits = intval($formats);

        // Run through all registered parsers and yield the requested instances
        foreach (self::$parsers as $parserFormat => $parserClass) {
            if ($parserFormat & $formatBits) {
                yield $parserFormat => new $parserClass($uri, $logger);
            }
        }
    }
public static function createParsersFromFormats ( $ formats , UriInterface $ uri , LoggerInterface $ logger ) { $ formatBits = intval ( $ formats ) ; // Run through all registered parsers and yield the requested instances foreach ( self :: $ parsers as $ parserFormat => $ parserClass ) { if ( $ parserFormat & $ formatBits ) { yield $ parserFormat => new $ parserClass ( $ uri , $ logger ) ; } } }
Create a list of parsers from a formats bitmask

@param int $formats            Parser format bitmask
@param UriInterface $uri       Base Uri
@param LoggerInterface $logger Logger

@return \Generator Parser generator
Create a list of parsers from a formats bitmask