0
votes

I just updated my composer after running my project it shows error in boostrap.cache file ClassNotFoundException I am currently using Netbeans on Windows.

Attempted to load class "ClassCollectionLoader" from namespace "Symfony\Component\ClassLoader". Did you forget a "use" statement for another namespace?

I tried command:

php bin/build_bootstrap.php

It gives me error:

could not open input file: bin/build_bootstrap.php

Clearing cache gave me errors like:

Fatal error: require_once(): Failed opening required 'C:\wamp\www\TEST\app/../vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/stubs/functions.php' (include_path='.;C:\php\pear') in C:\wamp\www\TEST\app\autoload.php on line 11 PHP Warning: require_once(C:\wamp\www\TEST\app/../vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/stubs/functions.php): failed to open stream: No such file or directory in C:\wamp\www\TEST\app\autoload.php on line 11 PHP Fatal error: require_once(): Failed opening required 'C:\wamp\www\TEST\app/../vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/stubs/functions.php' (include_path='.;C:\php\pear') in C:\wamp\www\TEST\app\autoload.php on line 11

<?php
use Doctrine\Common\Annotations\AnnotationRegistry;
if (!class_exists('Composer\\Autoload\\ClassLoader', false)) {
    $loader = require __DIR__.'/../vendor/autoload.php';
} else {
    $loader = new Composer\Autoload\ClassLoader();
    $loader->register();
}
// 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('class_exists');
return $loader;
1
Did you clear your cache?Michael Sivolobov
clearing cache gave me following errors: i will write the errors aboveAnonymous
What was the output of command composer update?Michael Sivolobov
it installed all symfony tools such as symfony.doctrine-bridge(v2.6.7) etc and generated autoload filesAnonymous
Without any error or warning?Michael Sivolobov

1 Answers

0
votes

First of all you need to install git. The latest version for Windows you can find here.

After that you need to set up PATH variable to find your git executable.

Then you need to run composer update.

I would also recommend you to install svn too. Because in some cases you can meet some libraries that use it yet.