for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Wandu\DI\Providers\Cleentfaar;
use CL\Slack\Transport\ApiClient;
use Wandu\Config\Contracts\Config;
use Wandu\DI\ContainerInterface;
use Wandu\DI\ServiceProviderInterface;
class SlackServiceProvider implements ServiceProviderInterface
{
/**
* {@inheritdoc}
*/
public function register(ContainerInterface $app)
$app->closure(ApiClient::class, function (Config $config) {
return new ApiClient($config->get('cleentfaar.slack.token'));
});
}
public function boot(ContainerInterface $app)