-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
53 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace Cone\Root\Interfaces\Breadcrumbs; | ||
|
||
use Closure; | ||
use Illuminate\Http\Request; | ||
|
||
interface Registry | ||
{ | ||
/** | ||
* Register a set of patterns. | ||
*/ | ||
public function patterns(array $patterns): void; | ||
|
||
/** | ||
* Register a pattern. | ||
*/ | ||
public function pattern(string $pattern, Closure|string $label): void; | ||
|
||
/** | ||
* Resolve the breadcrumbs using the given request. | ||
*/ | ||
public function resolve(Request $request): array; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace Cone\Root\Interfaces\Navigation; | ||
|
||
use Cone\Root\Navigation\Location; | ||
|
||
interface Registry | ||
{ | ||
/** | ||
* Get or register a new the location. | ||
*/ | ||
public function location(string $name): Location; | ||
|
||
/** | ||
* Get the registered. locations | ||
*/ | ||
public function locations(): array; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters