Fatal error: Uncaught SymfonyComponentDependencyInjectionExceptionInvalidArgumentException

I have deployed my website (in symfony 5) remotely. but when I change the mode from dev to prod here is the error that appears:

Fatal error: Uncaught SymfonyComponentDependencyInjectionExceptionInvalidArgumentException: Expected to find class "AppNotificationNotityInterface" in file "/var/www/vhosts/rkota.online/httpdocs/src/Notification/NotityInterface.php" while importing services from resource "../src/*", but it was not found! Check the namespace prefix used with the resource. in /var/www/vhosts/rkota.online/httpdocs/vendor/symfony/dependency-injection/Loader/FileLoader.php:206 Stack trace: #0 /var/www/vhosts/rkota.online/httpdocs/vendor/symfony/dependency-injection/Loader/FileLoader.php(99): SymfonyComponentDependencyInjectionLoaderFileLoader->findClasses() #1 /var/www/vhosts/rkota.online/httpdocs/vendor/symfony/dependency-injection/Loader/YamlFileLoader.php(671): SymfonyComponentDependencyInjectionLoaderFileLoader->registerClasses() #2 /var/www/vhosts/rkota.online/httpdocs/vendor/symfony/dependency-injection/Loader/YamlFileLoader.php(234): SymfonyComponentDependencyInjectionLoaderYamlFileLoader->parseDefinition() #3 /var/www in /var/www/vhosts/rkota.online/httpdocs/vendor/symfony/config/Loader/FileLoader.php on line 173

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *