Created
May 7, 2019 00:13
-
-
Save avosalmon/bb773ac8ca151f6e91c7af51bac276bf to your computer and use it in GitHub Desktop.
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
<?php | |
class OrderServiceProvider extends ServiceProvider | |
{ | |
public function register() | |
{ | |
$this->app->bind(OrderProcessor::class, function ($app) { | |
new OrderProcessor( | |
[ | |
new OrderHasAmount, | |
new OrderIsApproved, | |
new OrderIsNotCancelled | |
], | |
$this->app->make(Slack::class) | |
); | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment