PSR 4 alias change

This commit is contained in:
Wanderson Braganca 2014-11-09 12:37:40 -02:00
parent a9dcb2c50a
commit 77b5bbfed1
4 changed files with 4 additions and 29 deletions

26
.gitattributes vendored
View file

@ -1,26 +0,0 @@
# Autodetect text files
* text=auto
# ...Unless the name matches the following overriding patterns
# Definitively text files
*.php text
*.css text
*.js text
*.txt text
*.md text
*.xml text
*.json text
*.bat text
*.sql text
*.xml text
*.yml text
# Ensure those won't be messed up with
*.png binary
*.jpg binary
*.gif binary
*.ttf binary
*.svg binary
*.eot binary
*.woff binary

View file

@ -19,6 +19,7 @@ class FancytreeAsset extends \yii\web\AssetBundle
*/
public $depends = [
'yii\web\JqueryAsset',
'yii\jui\JuiAsset'
];
/**
@ -44,9 +45,9 @@ class FancytreeAsset extends \yii\web\AssetBundle
*/
public function init()
{
$this->setSourcePath(__DIR__ . '/../assets');
$this->setSourcePath(__DIR__ . '/assets');
$this->setupAssets('css', ['skin-lion/ui.fancytree']);
$this->setupAssets('js', ['http://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui', 'jquery.fancytree']);
$this->setupAssets('js', ['jquery.fancytree']);
parent::init();
}

View file

@ -20,6 +20,6 @@
"yiisoft/yii2-jui": "*"
},
"autoload": {
"psr-4": { "wbraganca\\": "" }
"psr-4": { "wbraganca\\fancytree\\": "" }
}
}