generated from spatie/package-skeleton-laravel
-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
inferring params from calls to request object
- Loading branch information
1 parent
80fa442
commit 8cdff9c
Showing
15 changed files
with
337 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
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,25 @@ | ||
<?php | ||
|
||
namespace Dedoc\Scramble\Infer\Handler; | ||
|
||
use Dedoc\Scramble\Infer\Scope\Scope; | ||
use PhpParser\Node; | ||
|
||
class IndexBuildingHandler | ||
{ | ||
public function __construct( | ||
private array $indexBuilders, | ||
){} | ||
|
||
public function shouldHandle($node) | ||
{ | ||
return true; | ||
} | ||
|
||
public function leave(Node $node, Scope $scope) | ||
{ | ||
foreach ($this->indexBuilders as $indexBuilder) { | ||
$indexBuilder->afterAnalyzedNode($scope, $node); | ||
} | ||
} | ||
} |
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
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,17 @@ | ||
<?php | ||
|
||
namespace Dedoc\Scramble\Support\IndexBuilders; | ||
|
||
class Bag | ||
{ | ||
public function __construct( | ||
public array $data = [] | ||
) {} | ||
|
||
public function set(string $key, $value) | ||
{ | ||
$this->data[$key] = $value; | ||
|
||
return $this; | ||
} | ||
} |
Oops, something went wrong.