yii\base\Application::setVendorPath PHP Method

setVendorPath() public method

Sets the directory that stores vendor files.
public setVendorPath ( string $path )
$path string the directory that stores vendor files.
    public function setVendorPath($path)
    {
        $this->_vendorPath = Yii::getAlias($path);
        Yii::setAlias('@vendor', $this->_vendorPath);
        Yii::setAlias('@bower', $this->_vendorPath . DIRECTORY_SEPARATOR . 'bower');
        Yii::setAlias('@npm', $this->_vendorPath . DIRECTORY_SEPARATOR . 'npm');
    }