Fix for components that support autowiring

Removed unneeded null object and call App::make without arguments
This commit is contained in:
Mariano Custiel 2016-04-18 13:48:09 +02:00
parent 9dc1b4d836
commit aa08a83420
1 changed files with 2 additions and 1 deletions

View File

@ -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;