Merge branch 'dev'

This commit is contained in:
Dave Olsen 2015-03-05 09:22:18 -05:00
commit c5aa29099f

View File

@ -13,6 +13,7 @@
namespace PatternLab; namespace PatternLab;
use \Composer\Script\Event; use \Composer\Script\Event;
use \Composer\Installer\PackageEvent;
use \PatternLab\InstallerUtil; use \PatternLab\InstallerUtil;
class Installer { class Installer {
@ -21,7 +22,7 @@ class Installer {
* Run the PL tasks when a package is installed * Run the PL tasks when a package is installed
* @param {Object} a script event object from composer * @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 // make sure pattern lab has been loaded
if (class_exists("\PatternLab\Config")) { if (class_exists("\PatternLab\Config")) {
@ -36,7 +37,7 @@ class Installer {
* Run the PL tasks when a package is updated * Run the PL tasks when a package is updated
* @param {Object} a script event object from composer * @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 // make sure pattern lab has been loaded
if (class_exists("\PatternLab\Config")) { if (class_exists("\PatternLab\Config")) {
@ -66,7 +67,7 @@ class Installer {
* Run the PL tasks when a package is removed * Run the PL tasks when a package is removed
* @param {Object} a script event object from composer * @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 // make sure pattern lab has been loaded
if (class_exists("\PatternLab\Config")) { if (class_exists("\PatternLab\Config")) {