* [MOD] Improved plugins manager

* [MOD] Code refactoring and cleanup
* [MOD] Make classes final for performance improvements and avoid some side behaviours
This commit is contained in:
nuxsmin
2018-07-28 21:45:49 +02:00
parent 3e26a1df71
commit cd2c0379db
90 changed files with 517 additions and 1071 deletions

View File

@@ -44,7 +44,7 @@ use SP\Services\CustomField\CustomFieldTypeService;
*
* @package SP\Modules\Web\Controllers
*/
class CustomFieldController extends ControllerBase implements CrudControllerInterface
final class CustomFieldController extends ControllerBase implements CrudControllerInterface
{
use JsonTrait, ItemTrait;
@@ -223,7 +223,7 @@ class CustomFieldController extends ControllerBase implements CrudControllerInte
}
try {
$form = new CustomFieldDefForm();
$form = new CustomFieldDefForm($this->dic);
$form->validate(Acl::CUSTOMFIELD_CREATE);
$itemData = $form->getItemData();
@@ -258,7 +258,7 @@ class CustomFieldController extends ControllerBase implements CrudControllerInte
}
try {
$form = new CustomFieldDefForm($id);
$form = new CustomFieldDefForm($this->dic, $id);
$form->validate(Acl::CUSTOMFIELD_EDIT);
$itemData = $form->getItemData();