]> git.mxchange.org Git - friendica-addons.git/commitdiff
rename prefix and add require
authorPhilipp Holzer <admin@philipp.info>
Sun, 21 Apr 2019 10:35:33 +0000 (12:35 +0200)
committerPhilipp Holzer <admin@philipp.info>
Sun, 21 Apr 2019 10:35:33 +0000 (12:35 +0200)
blockbot/blockbot.php
blockbot/composer.json
blockbot/vendor/autoload.php
blockbot/vendor/composer/autoload_real.php
blockbot/vendor/composer/autoload_static.php

index 5a50135784cf58d8159203d94a57f41b5a7a2137..6e4bb5ffd6230ee500b50e61cb96e3da2b9bcbb8 100644 (file)
@@ -12,6 +12,8 @@ use Friendica\Core\Hook;
 use Friendica\Core\System;
 use Jaybizzle\CrawlerDetect\CrawlerDetect;
 
+require_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
+
 function blockbot_install() {
        Hook::register('init_1', 'addon/blockbot/blockbot.php', 'blockbot_init_1');
 }
index 1ed7ec94e9358a92c1797edc651b3e906005c564..f13a2d17312240642ea2142e76e18427af454abc 100644 (file)
@@ -18,7 +18,7 @@
        "minimum-stability": "stable",
        "config": {
                "optimize-autoloader": true,
-               "autoloader-suffix": "AdvancedContentFilterAddon",
+               "autoloader-suffix": "BlockBotAddon",
                "preferred-install": "dist"
        }
 }
index 3e6193fa4655ab32e3db45476599587c55e23b96..d310134731138d4fa427086dc9215065f0ec9a9d 100644 (file)
@@ -4,4 +4,4 @@
 
 require_once __DIR__ . '/composer/autoload_real.php';
 
-return ComposerAutoloaderInitAdvancedContentFilterAddon::getLoader();
+return ComposerAutoloaderInitBlockBotAddon::getLoader();
index 984dcab7f6552365bed021807e71add560011a66..ccb886a23a07914c04ff8f182c1429dda84f1d58 100644 (file)
@@ -2,7 +2,7 @@
 
 // autoload_real.php @generated by Composer
 
-class ComposerAutoloaderInitAdvancedContentFilterAddon
+class ComposerAutoloaderInitBlockBotAddon
 {
     private static $loader;
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInitAdvancedContentFilterAddon
             return self::$loader;
         }
 
-        spl_autoload_register(array('ComposerAutoloaderInitAdvancedContentFilterAddon', 'loadClassLoader'), true, true);
+        spl_autoload_register(array('ComposerAutoloaderInitBlockBotAddon', 'loadClassLoader'), true, true);
         self::$loader = $loader = new \Composer\Autoload\ClassLoader();
-        spl_autoload_unregister(array('ComposerAutoloaderInitAdvancedContentFilterAddon', 'loadClassLoader'));
+        spl_autoload_unregister(array('ComposerAutoloaderInitBlockBotAddon', 'loadClassLoader'));
 
         $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
         if ($useStaticLoader) {
             require_once __DIR__ . '/autoload_static.php';
 
-            call_user_func(\Composer\Autoload\ComposerStaticInitAdvancedContentFilterAddon::getInitializer($loader));
+            call_user_func(\Composer\Autoload\ComposerStaticInitBlockBotAddon::getInitializer($loader));
         } else {
             $map = require __DIR__ . '/autoload_namespaces.php';
             foreach ($map as $namespace => $path) {
index cf117f3360b3a240a54336b2c61a7014127c004e..0198718102e6ce7062a0d22cb0303de219d6a008 100644 (file)
@@ -4,7 +4,7 @@
 
 namespace Composer\Autoload;
 
-class ComposerStaticInitAdvancedContentFilterAddon
+class ComposerStaticInitBlockBotAddon
 {
     public static $prefixLengthsPsr4 = array (
         'J' => 
@@ -31,9 +31,9 @@ class ComposerStaticInitAdvancedContentFilterAddon
     public static function getInitializer(ClassLoader $loader)
     {
         return \Closure::bind(function () use ($loader) {
-            $loader->prefixLengthsPsr4 = ComposerStaticInitAdvancedContentFilterAddon::$prefixLengthsPsr4;
-            $loader->prefixDirsPsr4 = ComposerStaticInitAdvancedContentFilterAddon::$prefixDirsPsr4;
-            $loader->classMap = ComposerStaticInitAdvancedContentFilterAddon::$classMap;
+            $loader->prefixLengthsPsr4 = ComposerStaticInitBlockBotAddon::$prefixLengthsPsr4;
+            $loader->prefixDirsPsr4 = ComposerStaticInitBlockBotAddon::$prefixDirsPsr4;
+            $loader->classMap = ComposerStaticInitBlockBotAddon::$classMap;
 
         }, null, ClassLoader::class);
     }