Esempio n. 1
0
 public function determineContext($class, $graph = null)
 {
     $graph = $graph ?: 'default';
     if (isset($this->contexts[$graph])) {
         foreach ($this->contexts[$graph] as $type => $context) {
             if ($this->repository()->isSupertype($class, $type)) {
                 return $context;
             }
         }
     }
     return $this->parent->determineContext($class, $graph);
 }