When I try to execute any magento command it gives me the following error:
PHP Fatal error: Uncaught Error: Cannot instantiate interface Magento\Framework\Interception\ConfigLoaderInterface in /home/vagrant/code/%PROJECT%/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:121
As you can see in the error message I am using a vagrant box to try and get my project running locally. Just did a composer update and magento update to 2.4.5. Can't get the project to work without updating either. I am using php 8.1, php-fpm 8.1 and magento package:
magento/product-community-edition: 2.4.5
My di.xml does contain the line:
<preference for="Magento\Framework\Interception\ConfigLoaderInterface" type="Magento\Framework\Interception\PluginListGenerator" />
Also tried to use the di.xml from https://github.com/magento/magento2/blob/2.4.3-release/app/etc/di.xml