Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function createRepository($className)
 {
     if (!$this->container || !$this->container[Reader::class]) {
         throw new ClassNotFoundException(Reader::class);
     }
     return new Repository($this, RepositorySettings::fromAnnotation($className, $this->container[Reader::class]));
 }
Ejemplo n.º 2
0
 /**
  * @return \ReflectionClass
  */
 private function getClassReflection()
 {
     static $reflection;
     if (!isset($reflection)) {
         $model = $this->settings->getModel();
         return $reflection = new ReflectionClass($model ? $model : 'stdClass');
     }
     return $reflection;
 }