Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[ClassLoader] moved most protected methods and properties to private

  • Loading branch information...
commit a1dbe3607bcca867d2d70a099bf51e6e083b6bee 1 parent 0364560
Fabien Potencier fabpot authored
7 ClassCollectionLoader.php
@@ -18,7 +18,7 @@
18 18 */
19 19 class ClassCollectionLoader
20 20 {
21   - static protected $loaded;
  21 + static private $loaded;
22 22
23 23 /**
24 24 * Loads a list of classes and caches them in one big file.
@@ -174,8 +174,7 @@ static public function fixNamespaceDeclarations($source)
174 174 *
175 175 * @throws \RuntimeException when a cache file cannot be written
176 176 */
177   -
178   - static protected function writeCacheFile($file, $content)
  177 + static private function writeCacheFile($file, $content)
179 178 {
180 179 $tmpFile = tempnam(dirname($file), basename($file));
181 180 if (false !== @file_put_contents($tmpFile, $content) && @rename($tmpFile, $file)) {
@@ -197,7 +196,7 @@ static protected function writeCacheFile($file, $content)
197 196 *
198 197 * @return string The PHP string with the comments removed
199 198 */
200   - static protected function stripComments($source)
  199 + static private function stripComments($source)
201 200 {
202 201 if (!function_exists('token_get_all')) {
203 202 return $source;
2  MapFileClassLoader.php
@@ -18,7 +18,7 @@
18 18 */
19 19 class MapFileClassLoader
20 20 {
21   - protected $map = array();
  21 + private $map = array();
22 22
23 23 /**
24 24 * Constructor.
8 UniversalClassLoader.php
@@ -54,10 +54,10 @@
54 54 */
55 55 class UniversalClassLoader
56 56 {
57   - protected $namespaces = array();
58   - protected $prefixes = array();
59   - protected $namespaceFallback = array();
60   - protected $prefixFallback = array();
  57 + private $namespaces = array();
  58 + private $prefixes = array();
  59 + private $namespaceFallback = array();
  60 + private $prefixFallback = array();
61 61
62 62 /**
63 63 * Gets the configured namespaces.

0 comments on commit a1dbe36

Please sign in to comment.
Something went wrong with that request. Please try again.