mirror of
https://github.com/pattern-lab/edition-php-twig-standard.git
synced 2025-01-16 20:18:15 +01:00
Merge branch 'dev'
This commit is contained in:
commit
c5aa29099f
@ -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")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user