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(
return array(
'id' => 'change-me',
'basePath' => dirname(__DIR__),
'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
'preload' => array('log'),
'controllerNamespace' => 'backstage\controllers',
'modules' => array(
......
......@@ -11,6 +11,7 @@ $params = array_merge(
return array(
'id' => 'change-me',
'basePath' => dirname(__DIR__),
'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
'preload' => array('log'),
'controllerNamespace' => 'console\controllers',
'modules' => array(
......
......@@ -11,6 +11,7 @@ $params = array_merge(
return array(
'id' => 'change-me',
'basePath' => dirname(__DIR__),
'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
'preload' => array('log'),
'controllerNamespace' => 'frontend\controllers',
'modules' => array(
......
composer.lock
\ No newline at end of file
......@@ -12,6 +12,9 @@
"irc": "irc://irc.freenode.net/yii",
"source": "https://github.com/yiisoft/yii2"
},
"config": {
"vendor-dir": "protected/vendor"
},
"minimum-stability": "dev",
"require": {
"php": ">=5.3.0",
......
......@@ -207,7 +207,8 @@ class Application extends Module
/**
* 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()
{
......
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