php - Symfony2: class included in AppKernel can not be found on webserver -
i added project fosuserbundle, on localhost it's works fine. on web server
fatal error: class 'fos\userbundle\fosuserbundle' not found in /home/zone24/domains/zone24.linuxpl.info/public_html/worldclock/app/appkernel.php on line 22
i can't cache:clear because same message. autoload.php
<?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')); return $loader;
the line appkernel.php
make mistake
new fos\userbundle\fosuserbundle(),
folderfriendsofsymfony
in /vendor has 775 permisions
are using apc ? if yes, restart apache clear cache.
if not help, can force autoloader register specific namespace $loader->add(), should not have that. fos works fine me without adding that.
Comments
Post a Comment