private function getRepository() { if ($this->repository === null) { $this->repository = $this->app['storage']->getRepository('Bolt\\Storage\\Entity\\Users'); } return $this->repository; }