Commit a6c251d2 by Carsten Brandt

Adjusted vendor dirs of example applications

- update composer json to chosse right path - set vendorPath in application config if not default
parent 4764404f
...@@ -11,6 +11,7 @@ $params = array_merge( ...@@ -11,6 +11,7 @@ $params = array_merge(
return array( return array(
'id' => 'change-me', 'id' => 'change-me',
'basePath' => dirname(__DIR__), 'basePath' => dirname(__DIR__),
'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
'preload' => array('log'), 'preload' => array('log'),
'controllerNamespace' => 'backstage\controllers', 'controllerNamespace' => 'backstage\controllers',
'modules' => array( 'modules' => array(
......
...@@ -11,6 +11,7 @@ $params = array_merge( ...@@ -11,6 +11,7 @@ $params = array_merge(
return array( return array(
'id' => 'change-me', 'id' => 'change-me',
'basePath' => dirname(__DIR__), 'basePath' => dirname(__DIR__),
'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
'preload' => array('log'), 'preload' => array('log'),
'controllerNamespace' => 'console\controllers', 'controllerNamespace' => 'console\controllers',
'modules' => array( 'modules' => array(
......
...@@ -11,6 +11,7 @@ $params = array_merge( ...@@ -11,6 +11,7 @@ $params = array_merge(
return array( return array(
'id' => 'change-me', 'id' => 'change-me',
'basePath' => dirname(__DIR__), 'basePath' => dirname(__DIR__),
'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
'preload' => array('log'), 'preload' => array('log'),
'controllerNamespace' => 'frontend\controllers', 'controllerNamespace' => 'frontend\controllers',
'modules' => array( 'modules' => array(
......
composer.lock
\ No newline at end of file
...@@ -12,6 +12,9 @@ ...@@ -12,6 +12,9 @@
"irc": "irc://irc.freenode.net/yii", "irc": "irc://irc.freenode.net/yii",
"source": "https://github.com/yiisoft/yii2" "source": "https://github.com/yiisoft/yii2"
}, },
"config": {
"vendor-dir": "protected/vendor"
},
"minimum-stability": "dev", "minimum-stability": "dev",
"require": { "require": {
"php": ">=5.3.0", "php": ">=5.3.0",
......
...@@ -207,7 +207,8 @@ class Application extends Module ...@@ -207,7 +207,8 @@ class Application extends Module
/** /**
* Returns the directory that stores vendor files. * Returns the directory that stores vendor files.
* @return string the directory that stores vendor files. Defaults to 'protected/vendor'. * @return string the directory that stores vendor files.
* Defaults to 'vendor' directory under applications [[basePath]].
*/ */
public function getVendorPath() public function getVendorPath()
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment