mirror of
https://github.com/pattern-lab/edition-php-twig-standard.git
synced 2025-01-16 20:18:15 +01:00
updating the event types
This commit is contained in:
parent
3c94431510
commit
a34ee22b78
@ -13,6 +13,7 @@
|
||||
namespace PatternLab;
|
||||
|
||||
use \Composer\Script\Event;
|
||||
use \Composer\Installer\PackageEvent;
|
||||
use \PatternLab\InstallerUtil;
|
||||
|
||||
class Installer {
|
||||
@ -21,7 +22,7 @@ class Installer {
|
||||
* Run the PL tasks when a package is installed
|
||||
* @param {Object} a script event object from composer
|
||||
*/
|
||||
public static function postPackageInstall(Event $event) {
|
||||
public static function postPackageInstall(PackageEvent $event) {
|
||||
|
||||
// make sure pattern lab has been loaded
|
||||
if (class_exists("\PatternLab\Config")) {
|
||||
@ -36,7 +37,7 @@ class Installer {
|
||||
* Run the PL tasks when a package is updated
|
||||
* @param {Object} a script event object from composer
|
||||
*/
|
||||
public static function postPackageUpdate(Event $event) {
|
||||
public static function postPackageUpdate(PackageEvent $event) {
|
||||
|
||||
// make sure pattern lab has been loaded
|
||||
if (class_exists("\PatternLab\Config")) {
|
||||
@ -66,7 +67,7 @@ class Installer {
|
||||
* Run the PL tasks when a package is removed
|
||||
* @param {Object} a script event object from composer
|
||||
*/
|
||||
public static function prePackageUninstall(Event $event) {
|
||||
public static function prePackageUninstall(PackageEvent $event) {
|
||||
|
||||
// make sure pattern lab has been loaded
|
||||
if (class_exists("\PatternLab\Config")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user