34 lines
502 B
PHP
34 lines
502 B
PHP
<?php namespace Ixudra\Curl;
|
|
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class CurlServiceProvider extends ServiceProvider {
|
|
|
|
/**
|
|
* @var bool
|
|
*/
|
|
protected $defer = false;
|
|
|
|
|
|
/**
|
|
* @return void
|
|
*/
|
|
public function register()
|
|
{
|
|
$this->app->singleton('Curl', function () {
|
|
return new CurlService();
|
|
}
|
|
);
|
|
}
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
public function provides()
|
|
{
|
|
return array('Curl');
|
|
}
|
|
|
|
}
|