define constant only if it wasn't defined before

This commit is contained in:
Christian Flothmann 2014-11-29 13:36:20 +01:00
parent efbf588ed0
commit 388229b55c

View File

@ -11,10 +11,12 @@
namespace Symfony\Component\ClassLoader;
if (PHP_VERSION_ID >= 50400) {
define('SYMFONY_TRAIT', T_TRAIT);
} else {
define('SYMFONY_TRAIT', 0);
if (!defined('SYMFONY_TRAIT')) {
if (PHP_VERSION_ID >= 50400) {
define('SYMFONY_TRAIT', T_TRAIT);
} else {
define('SYMFONY_TRAIT', 0);
}
}
/**