Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/281.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 无法声明类Composer AutoloaderInit_Php_Protocol Buffers - Fatal编程技术网

Php 无法声明类Composer AutoloaderInit

Php 无法声明类Composer AutoloaderInit,php,protocol-buffers,Php,Protocol Buffers,我有一个问题,我有一个错误,我无法修复。错误是该名称已在使用中。 我试图做的是调用一个需要返回一些响应的API。由于此错误,im无法访问API的数据 错误 Cannot declare class ComposerAutoloaderInitd1e500cc63b56a87596c43fefa8d9495, because the name is already in use in 这是我的autoload.php <?php // autoload.php @generated by

我有一个问题,我有一个错误,我无法修复。错误是该名称已在使用中。 我试图做的是调用一个需要返回一些响应的API。由于此错误,im无法访问API的数据

错误

Cannot declare class ComposerAutoloaderInitd1e500cc63b56a87596c43fefa8d9495, because the name is already in use in
这是我的autoload.php

<?php

// autoload.php @generated by Composer

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInitd1e500cc63b56a87596c43fefa8d9495::getLoader();

你让它工作了吗?如果是-如何。
<?php

// autoload_real.php @generated by Composer

class ComposerAutoloaderInitd1e500cc63b56a87596c43fefa8d9495
{
    private static $loader;

    public static function loadClassLoader($class)
    {
        if ('Composer\Autoload\ClassLoader' === $class) {
            require __DIR__ . '/ClassLoader.php';
        }
    }

    public static function getLoader()
    {
        if (null !== self::$loader) {
            return self::$loader;
        }

        spl_autoload_register(array('ComposerAutoloaderInitd1e500cc63b56a87596c43fefa8d9495', 'loadClassLoader'), true, true);
        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
        spl_autoload_unregister(array('ComposerAutoloaderInitd1e500cc63b56a87596c43fefa8d9495', 'loadClassLoader'));

        $includePaths = require __DIR__ . '/include_paths.php';
        $includePaths[] = get_include_path();
        set_include_path(implode(PATH_SEPARATOR, $includePaths));

        $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\ComposerStaticInitd1e500cc63b56a87596c43fefa8d9495::getInitializer($loader));
        } else {
            $map = require __DIR__ . '/autoload_namespaces.php';
            foreach ($map as $namespace => $path) {
                $loader->set($namespace, $path);
            }

            $map = require __DIR__ . '/autoload_psr4.php';
            foreach ($map as $namespace => $path) {
                $loader->setPsr4($namespace, $path);
            }

            $classMap = require __DIR__ . '/autoload_classmap.php';
            if ($classMap) {
                $loader->addClassMap($classMap);
            }
        }

        $loader->register(true);

        return $loader;
    }
}