| 1 | <?php namespace Anomaly\Streams\Platform\Entry; |
||
| 16 | class EntryRouter |
||
| 17 | { |
||
| 18 | |||
| 19 | use DispatchesJobs; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * The URL generator; |
||
| 23 | * |
||
| 24 | * @var UrlGenerator |
||
| 25 | */ |
||
| 26 | protected $url; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * The entry model. |
||
| 30 | * |
||
| 31 | * @var EntryInterface |
||
| 32 | */ |
||
| 33 | protected $model; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * The locator utility. |
||
| 37 | * |
||
| 38 | * @var Locator |
||
| 39 | */ |
||
| 40 | protected $locator; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Create a new EntryRouter instance. |
||
| 44 | * |
||
| 45 | * @param UrlGenerator $url |
||
| 46 | * @param EntryInterface $model |
||
| 47 | * @param Locator $locator |
||
| 48 | */ |
||
| 49 | public function __construct(UrlGenerator $url, EntryInterface $model, Locator $locator) |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Make a route. |
||
| 58 | * |
||
| 59 | * @param $route |
||
| 60 | * @param array $parameters |
||
| 61 | * @return mixed|null|string |
||
| 62 | */ |
||
| 63 | public function make($route, array $parameters = []) |
||
| 75 | } |
||
| 76 |