Skip to content

Commit

Permalink
Re-add dropped dataProvider callable execution
Browse files Browse the repository at this point in the history
  • Loading branch information
usox committed Apr 22, 2022
1 parent ed96dd1 commit 6028738
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "usox/hypersonic",
"description": "Creates subsonic compatible api backends",
"description": "Creates subsonic-api compatible backends",
"type": "library",
"config": {
"sort-packages": true
Expand Down
3 changes: 2 additions & 1 deletion src/HyperSonic.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ public function run(

if ($handler !== null) {
/** @var callable $handler */
$dataProvider = $this->dataProvider[$methodName];
// Retrieve the dataprovider
$dataProvider = call_user_func($this->dataProvider[$methodName]);

// retrieve handler method callable from method mapping
/** @var callable $method */
Expand Down

0 comments on commit 6028738

Please sign in to comment.