Class yii\composer\Installer
| Inheritance | yii\composer\Installer » Composer\Installer\LibraryInstaller |
|---|---|
| Available since version | 2.0 |
| Source Code | https://github.com/yiisoft/yii2/blob/master/extensions/composer/Installer.php |
Public Methods
| Method | Description | Defined 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 |
Protected Methods
Constants
| Constant | Value | Description | Defined By |
|---|---|---|---|
| EXTENSION_FILE | 'yiisoft/extensions.php' | yii\composer\Installer | |
| EXTRA_BOOTSTRAP | 'bootstrap' | yii\composer\Installer |
Method Details
| void addPackage( \Composer\Package\PackageInterface $package ) | ||
| $package | ||
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( ) |
| void generateDefaultAlias( \Composer\Package\PackageInterface $package ) | ||
| $package | ||
| void generateRandomString( ) |
| void install( \Composer\Repository\InstalledRepositoryInterface $repo, \Composer\Package\PackageInterface $package ) | ||
| $repo | ||
| $package | ||
| void linkBaseYiiFiles( ) |
| void loadExtensions( ) |
| void postCreateProject( $event ) | ||
| $event | ||
| void removeBaseYiiFiles( ) |
| void removePackage( \Composer\Package\PackageInterface $package ) | ||
| $package | ||
| void saveExtensions( array $extensions ) | ||
| $extensions | ||
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) |
| void supports( $packageType ) | ||
| $packageType | ||
| void uninstall( \Composer\Repository\InstalledRepositoryInterface $repo, \Composer\Package\PackageInterface $package ) | ||
| $repo | ||
| $package | ||
| void update( \Composer\Repository\InstalledRepositoryInterface $repo, \Composer\Package\PackageInterface $initial, \Composer\Package\PackageInterface $target ) | ||
| $repo | ||
| $initial | ||
| $target | ||