From f9b06e1e6dd0fafeee13807b0675651f9dc80617 Mon Sep 17 00:00:00 2001 From: Klimov Paul Date: Thu, 16 May 2013 15:38:46 +0300 Subject: [PATCH] Unknown property "yii\console\controllers\AssetController::publishOptions" error has been fixed. --- tests/unit/framework/console/controllers/AssetControllerTest.php | 4 ++-- yii/console/controllers/AssetController.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/framework/console/controllers/AssetControllerTest.php b/tests/unit/framework/console/controllers/AssetControllerTest.php index 7d58a01..ff1d291 100644 --- a/tests/unit/framework/console/controllers/AssetControllerTest.php +++ b/tests/unit/framework/console/controllers/AssetControllerTest.php @@ -125,9 +125,9 @@ class AssetControllerTest extends TestCase 'js' => array( 'js/test.js', ), - 'depends' => array( + /*'depends' => array( 'yii', - ), + ),*/ ), ); return $bundles; diff --git a/yii/console/controllers/AssetController.php b/yii/console/controllers/AssetController.php index d90f767..92a9467 100644 --- a/yii/console/controllers/AssetController.php +++ b/yii/console/controllers/AssetController.php @@ -41,7 +41,7 @@ class AssetController extends Controller $this->loadConfiguration($configFile); $bundles = $this->loadBundles($this->bundles, $this->extensions); $targets = $this->loadTargets($this->targets, $bundles); - $this->publishBundles($bundles, $this->publishOptions); + $this->publishBundles($bundles, $this->assetManager); $timestamp = time(); foreach ($targets as $target) { if (!empty($target->js)) {