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;
composer update
? – Michael Sivolobov