Merge pull request #1943 from mcustiel/bugfix-components-autowiring

Bug: Fix for components that support autowiring
This commit is contained in:
Samuel Georges 2016-05-08 11:17:32 +10:00
commit 05758ed507
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;
@ -102,7 +103,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;