[ClassLoader] moved most protected methods and properties to private
This commit is contained in:
parent
c9b965dbee
commit
32d2ec7571
@ -18,7 +18,7 @@ namespace Symfony\Component\ClassLoader;
|
|||||||
*/
|
*/
|
||||||
class ClassCollectionLoader
|
class ClassCollectionLoader
|
||||||
{
|
{
|
||||||
static protected $loaded;
|
static private $loaded;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Loads a list of classes and caches them in one big file.
|
* Loads a list of classes and caches them in one big file.
|
||||||
@ -174,8 +174,7 @@ class ClassCollectionLoader
|
|||||||
*
|
*
|
||||||
* @throws \RuntimeException when a cache file cannot be written
|
* @throws \RuntimeException when a cache file cannot be written
|
||||||
*/
|
*/
|
||||||
|
static private function writeCacheFile($file, $content)
|
||||||
static protected function writeCacheFile($file, $content)
|
|
||||||
{
|
{
|
||||||
$tmpFile = tempnam(dirname($file), basename($file));
|
$tmpFile = tempnam(dirname($file), basename($file));
|
||||||
if (false !== @file_put_contents($tmpFile, $content) && @rename($tmpFile, $file)) {
|
if (false !== @file_put_contents($tmpFile, $content) && @rename($tmpFile, $file)) {
|
||||||
@ -197,7 +196,7 @@ class ClassCollectionLoader
|
|||||||
*
|
*
|
||||||
* @return string The PHP string with the comments removed
|
* @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')) {
|
if (!function_exists('token_get_all')) {
|
||||||
return $source;
|
return $source;
|
||||||
|
@ -18,7 +18,7 @@ namespace Symfony\Component\ClassLoader;
|
|||||||
*/
|
*/
|
||||||
class MapFileClassLoader
|
class MapFileClassLoader
|
||||||
{
|
{
|
||||||
protected $map = array();
|
private $map = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
|
@ -54,10 +54,10 @@ namespace Symfony\Component\ClassLoader;
|
|||||||
*/
|
*/
|
||||||
class UniversalClassLoader
|
class UniversalClassLoader
|
||||||
{
|
{
|
||||||
protected $namespaces = array();
|
private $namespaces = array();
|
||||||
protected $prefixes = array();
|
private $prefixes = array();
|
||||||
protected $namespaceFallback = array();
|
private $namespaceFallback = array();
|
||||||
protected $prefixFallback = array();
|
private $prefixFallback = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the configured namespaces.
|
* Gets the configured namespaces.
|
||||||
|
Reference in New Issue
Block a user