Skip to content

Commit a1c276c

Browse files
mjauvinLukeTowers
andauthored
Winter 1.2.8 support (#57)
Co-authored-by: Luke Towers <github@luketowers.ca>
1 parent 2047350 commit a1c276c

24 files changed

+147
-476
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
},
3030
"require": {
3131
"php": ">=7.2",
32+
"winter/wn-backend-module": "~1.2.8|dev-develop",
3233
"composer/installers": "~1.0"
3334
},
3435
"replace": {

controllers/UserGroups.php

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -18,33 +18,8 @@ class UserGroups extends Controller
1818
\Backend\Behaviors\ListController::class
1919
];
2020

21-
/**
22-
* @var array `FormController` configuration.
23-
*/
24-
public $formConfig = 'config_form.yaml';
25-
26-
/**
27-
* @var array `ListController` configuration.
28-
*/
29-
public $listConfig = 'config_list.yaml';
30-
31-
/**
32-
* @var array `RelationController` configuration, by extension.
33-
*/
34-
public $relationConfig;
35-
3621
/**
3722
* @var array Permissions required to view this page.
3823
*/
3924
public $requiredPermissions = ['winter.users.access_groups'];
40-
41-
/**
42-
* Constructor.
43-
*/
44-
public function __construct()
45-
{
46-
parent::__construct();
47-
48-
BackendMenu::setContext('Winter.User', 'user', 'usergroups');
49-
}
5025
}

controllers/Users.php

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
use Flash;
66
use Response;
77
use Redirect;
8-
use BackendMenu;
9-
use BackendAuth;
108
use Backend\Classes\Controller;
11-
use System\Classes\SettingsManager;
129
use Winter\User\Models\User;
1310
use Winter\User\Models\UserGroup;
1411
use Winter\User\Models\MailBlocker;
@@ -45,20 +42,9 @@ class Users extends Controller
4542
public $requiredPermissions = ['winter.users.access_users'];
4643

4744
/**
48-
* @var string HTML body tag class
45+
* @var string The form layout to use. One of standard, sidebar, fancy
4946
*/
50-
public $bodyClass = 'compact-container';
51-
52-
/**
53-
* Constructor.
54-
*/
55-
public function __construct()
56-
{
57-
parent::__construct();
58-
59-
BackendMenu::setContext('Winter.User', 'user', 'users');
60-
SettingsManager::setContext('Winter.User', 'settings');
61-
}
47+
public $formLayout = 'sidebar';
6248

6349
public function index()
6450
{

controllers/usergroups/create.htm

Lines changed: 0 additions & 48 deletions
This file was deleted.

controllers/usergroups/index.htm

Lines changed: 0 additions & 2 deletions
This file was deleted.

controllers/usergroups/preview.htm

Lines changed: 0 additions & 19 deletions
This file was deleted.

controllers/usergroups/update.htm

Lines changed: 0 additions & 56 deletions
This file was deleted.

0 commit comments

Comments
 (0)