Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2787 from adriansuter/patch-callable-resolver
4.x - Add an advanced callable resolver
- Loading branch information
Showing
15 changed files
with
880 additions
and
164 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
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,31 @@ | ||
<?php | ||
/** | ||
* Slim Framework (https://slimframework.com) | ||
* | ||
* @license https://github.com/slimphp/Slim/blob/4.x/LICENSE.md (MIT License) | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Slim\Interfaces; | ||
|
||
interface AdvancedCallableResolverInterface extends CallableResolverInterface | ||
{ | ||
/** | ||
* Resolve $toResolve into a callable | ||
* | ||
* @param string|callable $toResolve | ||
* | ||
* @return callable | ||
*/ | ||
public function resolveRoute($toResolve): callable; | ||
|
||
/** | ||
* Resolve $toResolve into a callable | ||
* | ||
* @param string|callable $toResolve | ||
* | ||
* @return callable | ||
*/ | ||
public function resolveMiddleware($toResolve): callable; | ||
} |
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
Oops, something went wrong.