PHP Fatal error: Uncaught Error: Class 'Shopware\Components\Plugin' not found in /var/www/html/shopware/custom/plugins/OrderMail/src/OrderMail.php:14
Stack trace:
#0 /var/www/html/shopware/vendor/composer/ClassLoader.php(578): include()
#1 /var/www/html/shopware/vendor/composer/ClassLoader.php(432): Composer\Autoload\ClassLoader::Composer\Autoload\{closure}()
#2 [internal function]: Composer\Autoload\ClassLoader->loadClass()
#3 [internal function]: spl_autoload_call()
#4 /var/www/html/shopware/vendor/shopware/core/Framework/Plugin/KernelPluginLoader/KernelPluginLoader.php(282): class_exists()
#5 /var/www/html/shopware/vendor/shopware/core/Framework/Plugin/KernelPluginLoader/KernelPluginLoader.php(126): Shopware\Core\Framework\Plugin\KernelPluginLoader\KernelPluginLoader->instantiatePlugins()
#6 /var/www/html/shopware/vendor/shopware/core/Kernel.php(137): Shopware\Core\Framework\Plugin\KernelPluginLoader\KernelPluginLoader->initializePlugins()
#7 /var/www/html/shopware/vendor/symfony/framework-bundle/Console/Application.php(16 in /var/www/html/shopware/custom/plugins/OrderMail/src/OrderMail.php on line 14
Any clue why this happens or how to fix it?