Skip to content

Instantly share code, notes, and snippets.

@benjaminrau
Created August 28, 2013 22:35
Show Gist options
  • Save benjaminrau/6372250 to your computer and use it in GitHub Desktop.
Save benjaminrau/6372250 to your computer and use it in GitHub Desktop.
With the if clause the error below doesnt occur! Fatal error: Cannot redeclare class TYPO3\CMS\Core\SingletonInterface in /Users/benjaminrau/Dropbox/codearts/Kunden/Interwall/prisma/htdocs/typo3/sysext/core/Classes/SingletonInterface.php on line 38
$declaredInterfaces = get_declared_interfaces();
if (FALSE === array_search('TYPO3\CMS\Core\SingletonInterface', $declaredInterfaces)) {
interface SingletonInterface {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment