Skip to content

Commit 88df890

Browse files
author
Andrey Helldar
authored
Merge pull request #82 from cashier-provider/3.x
Added `Request::getPath` protected method
2 parents 0b772a8 + 864c65b commit 88df890

File tree

3 files changed

+7
-70
lines changed

3 files changed

+7
-70
lines changed

.styleci.yml

Lines changed: 0 additions & 68 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Or manually update `require` block of `composer.json` and run `composer update`.
2626
```json
2727
{
2828
"require": {
29-
"cashier-provider/core": "^2.0"
29+
"cashier-provider/core": "^3.0"
3030
}
3131
}
3232
```

src/Http/Request.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function model(): Model
7373

7474
public function uri(): HttpBuilderContract
7575
{
76-
return $this->getUriBuilder()->getWithPath($this->path);
76+
return $this->getUriBuilder()->getWithPath($this->getPath());
7777
}
7878

7979
public function headers(): array
@@ -114,6 +114,11 @@ protected function getUriBuilder(): URI
114114
return URI::make($this->production_host, $this->dev_host, Main::isProduction());
115115
}
116116

117+
protected function getPath(): ?string
118+
{
119+
return $this->path;
120+
}
121+
117122
/**
118123
* @param \DragonCode\Contracts\Cashier\Resources\Model $model
119124
*

0 commit comments

Comments
 (0)