Class yii\composer\Installer

Inheritanceyii\composer\Installer » Composer\Installer\LibraryInstaller
Available since version2.0
Source Code https://github.com/yiisoft/yii2/blob/master/extensions/composer/Installer.php

Public Methods

Hide inherited methods

MethodDescriptionDefined By
generateCookieValidationKey() Generates a cookie validation key for every app config listed in "config" in extra section. yii\composer\Installer
install() yii\composer\Installer
postCreateProject() yii\composer\Installer
setPermission() Sets the correct permission for the files and directories listed in the extra section. yii\composer\Installer
supports() yii\composer\Installer
uninstall() yii\composer\Installer
update() yii\composer\Installer

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
EXTENSION_FILE 'yiisoft/extensions.php' yii\composer\Installer
EXTRA_BOOTSTRAP 'bootstrap' yii\composer\Installer

Method Details

addPackage() protected method

void addPackage( \Composer\Package\PackageInterface $package )
$package
generateCookieValidationKey() public method

Generates a cookie validation key for every app config listed in "config" in extra section.

You can provide one or multiple parameters as the configuration files which need to have validation key inserted.

void generateCookieValidationKey( )
generateDefaultAlias() protected method

void generateDefaultAlias( \Composer\Package\PackageInterface $package )
$package
generateRandomString() protected method

void generateRandomString( )
install() public method

void install( \Composer\Repository\InstalledRepositoryInterface $repo, \Composer\Package\PackageInterface $package )
$repo
$package
linkBaseYiiFiles() protected method

void linkBaseYiiFiles( )
loadExtensions() protected method

void loadExtensions( )
postCreateProject() public method

void postCreateProject$event )
$event
removeBaseYiiFiles() protected method

void removeBaseYiiFiles( )
removePackage() protected method

void removePackage( \Composer\Package\PackageInterface $package )
$package
saveExtensions() protected method

void saveExtensions( array $extensions )
$extensions
setPermission() public method

Sets the correct permission for the files and directories listed in the extra section.

void setPermission( array $paths )
$paths array

The paths (keys) and the corresponding permission octal strings (values)

supports() public method

void supports$packageType )
$packageType
uninstall() public method

void uninstall( \Composer\Repository\InstalledRepositoryInterface $repo, \Composer\Package\PackageInterface $package )
$repo
$package
update() public method

void update( \Composer\Repository\InstalledRepositoryInterface $repo, \Composer\Package\PackageInterface $initial, \Composer\Package\PackageInterface $target )
$repo
$initial
$target