Cannot declare class SymfonyComponentDebugErrorHandler, because the name is already in use code example
Example: Cannot declare class Symfony\Component\Debug\ErrorHandler, because the name is already in use
I came here because I had same problem in Symfony2 framework.
I solved the problem by removing my \cache\dev folder and reestarting apache and refreshing again.