Fatal error: Uncaught Error: Class 'Magento\Framework\Code\Generator' not found in /home/hardwar1/public_html/vendor/magento/framework/ObjectManager/DefinitionFactory.php:92
Stack trace:
#0 /home/hardwar1/public_html/vendor/magento/framework/ObjectManager/DefinitionFactory.php(55): Magento\Framework\ObjectManager\DefinitionFactory->getCodeGenerator()
#1 /home/hardwar1/public_html/vendor/magento/framework/App/ObjectManagerFactory.php(120): Magento\Framework\ObjectManager\DefinitionFactory->createClassDefinition()
#2 /home/hardwar1/public_html/vendor/magento/framework/App/Bootstrap.php(211): Magento\Framework\App\ObjectManagerFactory->create(Array)
#3 /home/hardwar1/public_html/vendor/magento/framework/App/Bootstrap.php(126): Magento\Framework\App\Bootstrap->__construct(Object(Magento\Framework\App\ObjectManagerFactory), '/home/hardwar1/...', Array)
#4 /home/hardwar1/public_html/index.php(36): Magento\Framework\App\Bootstrap::create('/home/hardwar1/...', Array)
#5 {main}
thrown in /home/hardwar1/public_html/vendor/magento/framework/ObjectManager/DefinitionFactory.php on line 92