src/DMS/Bundle/FilterBundle/Loader/ContainerAwareLoader.php
public function getFilterForRule(Rule $rule)
    {
        $filterIdentifier = $rule->getFilter();

        if ($this->container === null || !$this->container->has($filterIdentifier)) {
            return parent::getFilterForRule($rule);
        }

        return $this->container->get($filterIdentifier);
    }
public function getFilterForRule(Rule $rule)
    {
        $filterIdentifier = $rule->getFilter();

        if ($this->container === null || !$this->container->has($filterIdentifier)) {
            return parent::getFilterForRule($rule);
        }

        return $this->container->get($filterIdentifier);
    }
public function getFilterForRule ( Rule $ rule ) { $ filterIdentifier = $ rule -> getFilter ( ) ; if ( $ this -> container === null || ! $ this -> container -> has ( $ filterIdentifier ) ) { return parent :: getFilterForRule ( $ rule ) ; } return $ this -> container -> get ( $ filterIdentifier ) ; }
Attempts to load Filter from Container or hands off to parent loader.

@param Rule $rule
@return BaseFilter|null|\stdClass
@throws \UnexpectedValueException
Attempts to load Filter from Container or hands off to parent loader .