acoustep/entrust-gui

View on GitHub
src/Http/Controllers/RolesController.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php namespace Acoustep\EntrustGui\Http\Controllers;

use Acoustep\EntrustGui\Gateways\RoleGateway;
use Illuminate\Config\Repository as Config;
use Illuminate\Http\Request;

/**
 * This file is part of Entrust GUI,
 * A Laravel 5 GUI for Entrust.
 *
 * @license MIT
 * @package Acoustep\EntrustGui
 */
class RolesController extends ManyToManyController
{
    /**
     * Create a new RolesController instance.
     *
     * @param Request $request
     * @param Config $config
     * @param RoleGateway $gateway
     *
     * @return void
     */
    public function __construct(Request $request, Config $config, RoleGateway $model)
    {
        parent::__construct($request, $config, $model, 'roles', 'permission');
    }
}