本文整理汇总了PHP中Composer\Installer\LibraryInstaller::initializeVendorDir方法的典型用法代码示例。如果您正苦于以下问题:PHP LibraryInstaller::initializeVendorDir方法的具体用法?PHP LibraryInstaller::initializeVendorDir怎么用?PHP LibraryInstaller::initializeVendorDir使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Composer\Installer\LibraryInstaller
的用法示例。
在下文中一共展示了LibraryInstaller::initializeVendorDir方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: initializeVendorDir
/**
* Initialize the Component directory, as well as the vendor directory.
*/
protected function initializeVendorDir()
{
$this->componentDir = $this->getComponentDir();
$this->filesystem->ensureDirectoryExists($this->componentDir);
parent::initializeVendorDir();
}
示例2: initializeVendorDir
/**
* Initialize the Component directory, as well as the vendor directory.
*/
protected function initializeVendorDir()
{
$this->filesystem->ensureDirectoryExists($this->getAssetsDir());
parent::initializeVendorDir();
}
示例3: initializeVendorDir
/**
* {@inheritDoc}
*/
protected function initializeVendorDir()
{
parent::initializeVendorDir();
$this->dumpSharedAutoload();
}
示例4: initializeVendorDir
/**
* initializeVendorDir
*
* @return void
*/
protected function initializeVendorDir()
{
parent::initializeVendorDir();
$default_public_path = $this->getVendorDir() . DIRECTORY_SEPARATOR . 'mkungla' . DIRECTORY_SEPARATOR . 'aframe-php' . DIRECTORY_SEPARATOR . 'public' . DIRECTORY_SEPARATOR . 'aframe';
$this->public_root = $this->composer->getConfig()->get('aframe-dir') ?? $default_public_path;
$this->filesystem->ensureDirectoryExists($this->public_root);
$this->public_core_dir = $this->public_root . DIRECTORY_SEPARATOR . 'core';
$this->filesystem->ensureDirectoryExists($this->public_core_dir);
}