Cannot instantiate abstract class … in appDevDebugProjectContainer.php - Symfony2

柔情痞子 提交于 2019-12-04 16:23:28

Well the error is pretty self-explanatory. You cannot instantiate an Abstract Class as per OOP rules !

Your MenuBuilder is an abstract class and you are trying to instantiate with a new keyword which is not possible.

If your MenuBuilder class was abstract at some point and you changed it to be a concrete class, it's possible that APC still has the old version lurking around (in memory).

Try restarting your webserver.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!