Esempio n. 1
0
 /**
  * {@inheritdoc}
  */
 public function resolveCriteria($mandatory = false)
 {
     if (isset($this->cache[$key = 'criteria'])) {
         $criteria = $this->cache[$key];
         if (!empty($criteria) || !$mandatory) {
             return $criteria;
         }
     }
     return $this->cache[$key] = $this->parameterResolver->resolveCriteria($mandatory);
 }