Created
May 5, 2015 21:27
-
-
Save nullproduction/6ab24952c5f765403780 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 | |
namespace App\Libs\VK\Laravel; | |
use Illuminate\Support\ServiceProvider; | |
class VKServiceProvider extends ServiceProvider | |
{ | |
public function register() | |
{ | |
$this->app->singleton('vk', function ($app) { | |
$config = $this->app->config->get('services.vk'); | |
$vk = new \App\Libs\VK\VK($config); | |
return $vk; | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment