]> git.mxchange.org Git - friendica-addons.git/blobdiff - krynn/krynn.php
[various] Remove App dependency from hook functions
[friendica-addons.git] / krynn / krynn.php
index 48a65fdd6cd2a00377b09073f8dfa31117ccb999..f7e77c26990ec6b9485606c166ec9ca2a7508633 100644 (file)
@@ -35,7 +35,7 @@ function krynn_install()
        Logger::notice("installed krynn");
 }
 
-function krynn_post_hook(App $a, &$item)
+function krynn_post_hook(&$item)
 {
        /**
         * An item was posted on the local system.
@@ -88,7 +88,7 @@ function krynn_post_hook(App $a, &$item)
  * We will make sure we've got a valid user account
  * and if so set our configuration setting for this person.
  */
-function krynn_settings_post(App $a, $post)
+function krynn_settings_post($post)
 {
        if (!DI::userSession()->getLocalUserId()) {
                return;
@@ -103,7 +103,7 @@ function krynn_settings_post(App $a, $post)
  * Called from the addon Setting form.
  * Add our own settings info to the page.
  */
-function krynn_settings(App &$a, array &$data)
+function krynn_settings(array &$data)
 {
        if (!DI::userSession()->getLocalUserId()) {
                return;