foothing/laravel-wrappr

View on GitHub
src/Foothing/Wrappr/WrapprServiceProvider.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php namespace Foothing\Wrappr;

use Illuminate\Support\ServiceProvider;

class WrapprServiceProvider extends ServiceProvider {

    public function register() {
        $this->app->bind('foothing.wrappr', 'Foothing\Wrappr\Manager');
        $this->app->bind('foothing.wrappr.installer', 'Foothing\Wrappr\Installer\RouteInstaller');

        // Interfaces binding.
        $this->app->bind('Foothing\Wrappr\Providers\Permissions\PermissionProviderInterface', config('wrappr.permissionsProvider'));
        $this->app->bind('Foothing\Wrappr\Providers\Users\UserProviderInterface', config('wrappr.usersProvider'));
    }

    public function boot() {
        $this->publishes( [ __DIR__ . "/../../database/" => database_path('/migrations') ], 'migrations' );
        $this->publishes( [ __DIR__ . "/../../config/wrappr.php" => config_path('wrappr.php') ], 'config' );
    }
}