Commit c548bcec authored by Nicolas Widart's avatar Nicolas Widart

Removing unused imports

parent 926a7bc6
<?php namespace Modules\User\Http\Controllers\Admin; <?php namespace Modules\User\Http\Controllers\Admin;
use Cartalyst\Sentinel\Laravel\Facades\Sentinel;
use Illuminate\Support\Facades\Redirect; use Illuminate\Support\Facades\Redirect;
use Illuminate\Support\Facades\View; use Illuminate\Support\Facades\View;
use Laracasts\Flash\Flash; use Laracasts\Flash\Flash;
...@@ -12,10 +11,6 @@ use Modules\User\Repositories\RoleRepository; ...@@ -12,10 +11,6 @@ use Modules\User\Repositories\RoleRepository;
class RolesController extends AdminBaseController class RolesController extends AdminBaseController
{ {
/**
* @var \Cartalyst\Sentinel\Roles\EloquentRole
*/
protected $roles;
/** /**
* @var PermissionManager * @var PermissionManager
*/ */
...@@ -28,7 +23,6 @@ class RolesController extends AdminBaseController ...@@ -28,7 +23,6 @@ class RolesController extends AdminBaseController
public function __construct(PermissionManager $permissions, RoleRepository $role) public function __construct(PermissionManager $permissions, RoleRepository $role)
{ {
parent::__construct(); parent::__construct();
$this->roles = Sentinel::getRoleRepository()->createModel();
$this->permissions = $permissions; $this->permissions = $permissions;
$this->role = $role; $this->role = $role;
$this->beforeFilter('permissions'); $this->beforeFilter('permissions');
......
<?php namespace Modules\User\Http\Controllers\Admin; <?php namespace Modules\User\Http\Controllers\Admin;
use Cartalyst\Sentinel\Laravel\Facades\Activation;
use Cartalyst\Sentinel\Laravel\Facades\Sentinel;
use Illuminate\Support\Facades\Redirect; use Illuminate\Support\Facades\Redirect;
use Illuminate\Support\Facades\View; use Illuminate\Support\Facades\View;
use Laracasts\Flash\Flash; use Laracasts\Flash\Flash;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment