我安装了一个symfony 3项目,但不能运行任何PHP bin / console命令.当我尝试,我得到以下错误:
原文链接:https://www.f2er.com/php/138989.htmlPHP Fatal error: Uncaught Symfony\Component\Debug\Exception\ClassNotFoundException: Attempted to load class “DOMDocument” from the global namespace.
Did you forget a “use” statement? in project_folder/vendor/symfony/symfony/src/Symfony/Component/Config/Util/XmlUtils.PHP:52
任何想法如何解决这个问题?