Fix for components that support autowiring
Removed unneeded null object and call App::make without arguments
This commit is contained in:
parent
9dc1b4d836
commit
aa08a83420
|
|
@ -1,5 +1,6 @@
|
|||
<?php namespace Cms\Widgets;
|
||||
|
||||
use App;
|
||||
use Str;
|
||||
use Lang;
|
||||
use Input;
|
||||
|
|
@ -110,7 +111,7 @@ class ComponentList extends WidgetBase
|
|||
foreach ($components as $componentInfo) {
|
||||
$className = $componentInfo->className;
|
||||
$alias = $componentInfo->alias;
|
||||
$component = new $className();
|
||||
$component = App::make($className);
|
||||
|
||||
if ($component->isHidden) {
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Reference in New Issue