Nicht definierte Methode registerNamespaces() symfony2

Ich bin nach dieser FOSTwitterBundle Dokumentation:
https://github.com/FriendsOfSymfony/FOSTwitterBundle

Ich habe es alles Schritt für Schritt, aber wenn ich auf meine Website zugreifen, bekomme ich diesen Fehler:

 Fatal error: Call to undefined method Composer\Autoload\ClassLoader::registerNamespaces() in C:\xampp\htdocs\Symfony\app\autoload.php on line 16

Meine autoload.php ist wie diese:

<?php

use Doctrine\Common\Annotations\AnnotationRegistry;

$loader = require __DIR__.'/../vendor/autoload.php';

//intl
if (!function_exists('intl_get_error_code')) {
    require_once __DIR__.'/../vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/stubs/functions.php';

    $loader->add('', __DIR__.'/../vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/stubs');
}

AnnotationRegistry::registerLoader(array($loader, 'loadClass'));

$loader->registerNamespaces(array(
        //...
        'FOS'    => __DIR__.'/../vendor/bundles',
        //...
  ));

return $loader;

Was soll ich tun?

InformationsquelleAutor Reinherd | 2013-03-07
Schreibe einen Kommentar