public function __construct($basePath, RepositoryInterface $repository) { $this->basePath = $basePath; $this->repository = $repository; }