@@ -17,9 +17,9 @@ |
||
17 | 17 | use function Flextype\Component\I18n\__; |
18 | 18 | |
19 | 19 | // Add Admin Navigation |
20 | -flextype('registry')->set('plugins.admin.settings.navigation.extends.fieldsets', ['title' => __('form_admin_fieldsets'),'icon' => 'far fa-list-alt', 'link' => flextype('router')->pathFor('admin.fieldsets.index')]); |
|
20 | +flextype('registry')->set('plugins.admin.settings.navigation.extends.fieldsets', ['title' => __('form_admin_fieldsets'), 'icon' => 'far fa-list-alt', 'link' => flextype('router')->pathFor('admin.fieldsets.index')]); |
|
21 | 21 | |
22 | 22 | // Add FieldsetsController |
23 | -flextype()->container()['FieldsetsController'] = static function () { |
|
23 | +flextype()->container()['FieldsetsController'] = static function() { |
|
24 | 24 | return new FieldsetsController(); |
25 | 25 | }; |
@@ -17,6 +17,6 @@ |
||
17 | 17 | flextype()->post('/fieldsets/delete', 'FieldsetsController:deleteProcess')->setName('admin.fieldsets.deleteProcess'); |
18 | 18 | |
19 | 19 | })->add(new AclIsUserLoggedInMiddleware(['redirect' => 'admin.accounts.login'])) |
20 | - ->add(new AclIsUserLoggedInRolesInMiddleware(['redirect' => (flextype()->getContainer()->acl->isUserLoggedIn() ? 'admin.accounts.no-access' : 'admin.accounts.login'), |
|
21 | - 'roles' => 'admin'])) |
|
22 | - ->add('csrf'); |
|
20 | + ->add(new AclIsUserLoggedInRolesInMiddleware(['redirect' => (flextype()->getContainer()->acl->isUserLoggedIn() ? 'admin.accounts.no-access' : 'admin.accounts.login'), |
|
21 | + 'roles' => 'admin'])) |
|
22 | + ->add('csrf'); |
@@ -5,7 +5,7 @@ |
||
5 | 5 | use Flextype\Plugin\Acl\Middlewares\AclIsUserLoggedInMiddleware; |
6 | 6 | use Flextype\Plugin\Acl\Middlewares\AclIsUserLoggedInRolesInMiddleware; |
7 | 7 | |
8 | -flextype()->group('/' . $admin_route, function () { |
|
8 | +flextype()->group('/' . $admin_route, function() { |
|
9 | 9 | flextype()->get('/fieldsets', 'FieldsetsController:index')->setName('admin.fieldsets.index'); |
10 | 10 | flextype()->get('/fieldsets/add', 'FieldsetsController:add')->setName('admin.fieldsets.add'); |
11 | 11 | flextype()->post('/fieldsets/add', 'FieldsetsController:addProcess')->setName('admin.fieldsets.addProcess'); |
@@ -13,10 +13,10 @@ |
||
13 | 13 | /** |
14 | 14 | * __construct |
15 | 15 | */ |
16 | - public function __construct() |
|
17 | - { |
|
16 | + public function __construct() |
|
17 | + { |
|
18 | 18 | |
19 | - } |
|
19 | + } |
|
20 | 20 | |
21 | 21 | public function index($request, $response) |
22 | 22 | { |