Наследование: extends Controller, use trait Litepie\User\Traits\Auth\UserManager
Пример #1
0
 /**
  * Initialize user controller.
  *
  * @param type UserRepositoryInterface $user
  *
  * @return type
  */
 public function __construct(UserRepository $user, PermissionRepository $permission, RoleRepository $roles)
 {
     $this->repository = $user;
     $this->permission = $permission;
     $this->roles = $roles;
     parent::__construct();
 }
 /**
  * Initialize setting controller.
  *
  * @param type SettingRepositoryInterface $setting
  *
  * @return type
  */
 public function __construct(SettingRepositoryInterface $setting)
 {
     $this->repository = $setting;
     parent::__construct();
 }
 public function __construct(\Litepie\Contracts\Menu\MenuRepository $menu)
 {
     $this->repository = $menu;
     parent::__construct();
 }
 /**
  * Initialize permission controller.
  *
  * @param type PermissionRepositoryInterface $permission
  *
  * @return type
  */
 public function __construct(PermissionRepository $permission)
 {
     parent::__construct();
     $this->repository = $permission;
 }
Пример #5
0
 /**
  * Initialize role controller.
  *
  * @param type RoleRepositoryInterface $role
  *
  * @return type
  */
 public function __construct(RoleRepository $role, PermissionRepository $permission)
 {
     $this->permission = $permission;
     $this->repository = $role;
     parent::__construct();
 }
Пример #6
0
 /**
  * Initialize page controller.
  *
  * @param type PageRepositoryInterface $page
  *
  * @return type
  */
 public function __construct(PageRepositoryInterface $page)
 {
     parent::__construct();
     $this->repository = $page;
 }