mirror of
https://github.com/pattern-lab/edition-php-twig-standard.git
synced 2025-01-16 20:18:15 +01:00
updating the supported composer events
This commit is contained in:
parent
60f2eda25e
commit
8789b94ea7
@ -32,8 +32,8 @@
|
||||
"pattern-lab/styleguidekit-twig-default": "dev-dev"
|
||||
},
|
||||
"scripts": {
|
||||
"pre-install-cmd": [
|
||||
"PatternLab\\Installer::preInstallCmd"
|
||||
"post-create-project-cmd": [
|
||||
"PatternLab\\Installer::postCreateProjectCmd"
|
||||
],
|
||||
"post-package-install": [
|
||||
"PatternLab\\Installer::postPackageInstall"
|
||||
@ -41,6 +41,9 @@
|
||||
"post-package-update": [
|
||||
"PatternLab\\Installer::postPackageUpdate"
|
||||
],
|
||||
"pre-install-cmd": [
|
||||
"PatternLab\\Installer::preInstallCmd"
|
||||
],
|
||||
"pre-package-uninstall": [
|
||||
"PatternLab\\Installer::prePackageUninstall"
|
||||
]
|
||||
|
@ -18,6 +18,21 @@ use \PatternLab\InstallerUtil;
|
||||
|
||||
class Installer {
|
||||
|
||||
/**
|
||||
* Run the PL tasks when a package is installed
|
||||
* @param {Object} a script event object from composer
|
||||
*/
|
||||
public static function postCreateProjectCmd(Event $event) {
|
||||
|
||||
// make sure pattern lab has been loaded
|
||||
if (class_exists("\PatternLab\Config")) {
|
||||
|
||||
InstallerUtil::postCreateProjectCmd($event);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Run the PL tasks when a package is installed
|
||||
* @param {Object} a script event object from composer
|
||||
|
Loading…
x
Reference in New Issue
Block a user