Permalink
Browse files

[ClassLoader] moved most protected methods and properties to private

  • Loading branch information...
1 parent 0364560 commit a1dbe3607bcca867d2d70a099bf51e6e083b6bee @fabpot fabpot committed Mar 8, 2011
Showing with 8 additions and 9 deletions.
  1. +3 −4 ClassCollectionLoader.php
  2. +1 −1 MapFileClassLoader.php
  3. +4 −4 UniversalClassLoader.php
@@ -18,7 +18,7 @@
*/
class ClassCollectionLoader
{
- static protected $loaded;
+ static private $loaded;
/**
* Loads a list of classes and caches them in one big file.
@@ -174,8 +174,7 @@ static public function fixNamespaceDeclarations($source)
*
* @throws \RuntimeException when a cache file cannot be written
*/
-
- static protected function writeCacheFile($file, $content)
+ static private function writeCacheFile($file, $content)
{
$tmpFile = tempnam(dirname($file), basename($file));
if (false !== @file_put_contents($tmpFile, $content) && @rename($tmpFile, $file)) {
@@ -197,7 +196,7 @@ static protected function writeCacheFile($file, $content)
*
* @return string The PHP string with the comments removed
*/
- static protected function stripComments($source)
+ static private function stripComments($source)
{
if (!function_exists('token_get_all')) {
return $source;
View
@@ -18,7 +18,7 @@
*/
class MapFileClassLoader
{
- protected $map = array();
+ private $map = array();
/**
* Constructor.
View
@@ -54,10 +54,10 @@
*/
class UniversalClassLoader
{
- protected $namespaces = array();
- protected $prefixes = array();
- protected $namespaceFallback = array();
- protected $prefixFallback = array();
+ private $namespaces = array();
+ private $prefixes = array();
+ private $namespaceFallback = array();
+ private $prefixFallback = array();
/**
* Gets the configured namespaces.

0 comments on commit a1dbe36

Please sign in to comment.