cakephp/cakephp — pull request #4587 by TamiasSibiricus (2014-09-12 08:55:23+00:00)
Title: 3.0 widgets list from config file

Here is fix for possibility to load widgets array from config file.
But maybe it is reasonable to use InstanceConfigTrait and rewrite code for it. For example method WidgetRegistry::clear cleanup all widgets. It can broke view totally.
If WidgetRegistry will use InstanceConfigTrait it is always possible to use default widgets list after clenaup.