/** * {@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])); }
/** * @return \ReflectionClass */ private function getClassReflection() { static $reflection; if (!isset($reflection)) { $model = $this->settings->getModel(); return $reflection = new ReflectionClass($model ? $model : 'stdClass'); } return $reflection; }