diff options
author | Roman Marintsenko <inoryy@gmail.com> | 2012-10-31 12:04:56 +0200 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2012-11-13 13:58:14 +0100 |
commit | 9228a2a8d92e5023b02ff5c16d1332fa392766f3 (patch) | |
tree | 6b219f0c1998d54af8328e944b78eaa619cca318 /Core | |
parent | b20dc084818bf7f59dd4ff937896f4236821055c (diff) | |
download | symfony-security-9228a2a8d92e5023b02ff5c16d1332fa392766f3.zip symfony-security-9228a2a8d92e5023b02ff5c16d1332fa392766f3.tar.gz symfony-security-9228a2a8d92e5023b02ff5c16d1332fa392766f3.tar.bz2 |
Make non-instantiable utils classes consistent with each other
Diffstat (limited to 'Core')
-rw-r--r-- | Core/Util/ClassUtils.php | 5 | ||||
-rw-r--r-- | Core/Util/StringUtils.php | 9 |
2 files changed, 10 insertions, 4 deletions
diff --git a/Core/Util/ClassUtils.php b/Core/Util/ClassUtils.php index 7b583a3..26bf1a1 100644 --- a/Core/Util/ClassUtils.php +++ b/Core/Util/ClassUtils.php @@ -37,6 +37,11 @@ class ClassUtils const MARKER_LENGTH = 6; /** + * This class should not be instantiated + */ + private function __construct() {} + + /** * Gets the real class name of a class name that could be a proxy. * * @param string|object diff --git a/Core/Util/StringUtils.php b/Core/Util/StringUtils.php index a73b471..d21efd3 100644 --- a/Core/Util/StringUtils.php +++ b/Core/Util/StringUtils.php @@ -16,11 +16,12 @@ namespace Symfony\Component\Security\Core\Util; * * @author Fabien Potencier <fabien@symfony.com> */ -final class StringUtils +class StringUtils { - final private function __construct() - { - } + /** + * This class should not be instantiated + */ + private function __construct() {} /** * Compares two strings. |