src/FilterBag/Factory/ExpressionParserFactory.php
public function getFilterBagFromExpression($filtersExpression)
    {
        $parser = new Parser($filtersExpression);
        $filtersAST = $parser->getAST();

        $filterBag = new FilterBag();
        $filterBag->set('filter_' . md5($filtersExpression), $filtersAST);

        return $filterBag;
    }
public function getFilterBagFromExpression($filtersExpression)
    {
        $parser = new Parser($filtersExpression);
        $filtersAST = $parser->getAST();

        $filterBag = new FilterBag();
        $filterBag->set('filter_' . md5($filtersExpression), $filtersAST);

        return $filterBag;
    }
public function getFilterBagFromExpression ( $ filtersExpression ) { $ parser = new Parser ( $ filtersExpression ) ; $ filtersAST = $ parser -> getAST ( ) ; $ filterBag = new FilterBag ( ) ; $ filterBag -> set ( 'filter_' . md5 ( $ filtersExpression ) , $ filtersAST ) ; return $ filterBag ; }
Build a FilterBag object by parsing the given filters expression

@param $filtersExpression

@return FilterBagInterface
Build a FilterBag object by parsing the given filters expression