Esempio n. 1
0
 /**
  * {@inheritdoc}
  *
  * Instantiates an instance of the FQCN passed, injecting the user and record
  * into it.
  *
  * @return Policy|Scope
  */
 public function resolve($what)
 {
     if (!method_exists($this->record, 'resolve')) {
         return get_class($this->record) . ucfirst($what);
     }
     return $this->record->resolve($what);
 }