Skip to content

[Feat] Pipeline function control #198

Draft
SonyPradana wants to merge 4 commits intomasterfrom
pipeline
Draft

[Feat] Pipeline function control #198
SonyPradana wants to merge 4 commits intomasterfrom
pipeline

Conversation

@SonyPradana
Copy link
Owner

pipe()
  ->with([
    'request' => new Request()
  ])
  ->throw(fn ($request) => new Response($request))
  ->then(fn ($response) => $response->content('ok'))
  ->success(function ($result) {
    echo $result;
  })
  ->finally(function () {
    flush();
  });

Comment on lines +41 to +43
$i = $this->prepares->lastKey();
$i++;
$this->prepares->set($i, $callback);
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use new collection push method

@SonyPradana
Copy link
Owner Author

allowing multy through will fast merge 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant