Skip to content

Commit c1d8848

Browse files
committed
Rename method makeRepository to initializeRepository
1 parent 5c53fbf commit c1d8848

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Contracts/Repository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,5 @@ public function model();
8686
*
8787
* @throws PPSpaces\Exceptions\RepositoryException
8888
*/
89-
public function makeRepository();
89+
public function initializeRepository();
9090
}

src/Repositories/Repository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ abstract class Repository implements RepositoryContract, JsonSerializable, UrlRo
5959
public function __construct(App $app) {
6060
$this->app = $app;
6161

62-
$this->makeRepository();
62+
$this->initializeRepository();
6363
}
6464

6565
/**
@@ -158,7 +158,7 @@ public function model() {
158158
*
159159
* @throws PPSpaces\Exceptions\RepositoryException
160160
*/
161-
public function makeRepository() {
161+
public function initializeRepository() {
162162
$model = $this->app->make($this->model);
163163

164164
if (!$model instanceof Model) {

0 commit comments

Comments
 (0)