Commit e87e6081 authored by freek's avatar freek

add macroable

parent a052d689
......@@ -2,6 +2,9 @@
All Notable changes to `url` will be documented in this file
## 1.2.0 - 2017-09-18
- Added: `Url` now is macroable
## 1.1.0 - 2017-07-01
- Added: `getFirstSegment` and `getLastSegment`
......
......@@ -17,7 +17,8 @@
],
"require": {
"php": "^7.0",
"psr/http-message": "^1.0"
"psr/http-message": "^1.0",
"spatie/macroable": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "5.*"
......
......@@ -3,10 +3,13 @@
namespace Spatie\Url;
use Psr\Http\Message\UriInterface;
use Spatie\Macroable\Macroable;
use Spatie\Url\Exceptions\InvalidArgument;
class Url implements UriInterface
{
use Macroable;
/** @var string */
protected $scheme = '';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment