Change getViewCache method visibility to private

This commit is contained in:
Mikhail Shamin 2015-07-22 11:20:20 +07:00
parent 02007e957d
commit be682f7d18

View File

@ -27,20 +27,15 @@ use Symfony\Component\Routing\RouterInterface;
*/ */
class CachingApiDocExtractor extends ApiDocExtractor class CachingApiDocExtractor extends ApiDocExtractor
{ {
/**
* @var \Symfony\Component\Config\ConfigCache
*/
protected $cache;
/** /**
* @var string * @var string
*/ */
protected $cacheFile; private $cacheFile;
/** /**
* @var bool * @var bool
*/ */
protected $debug; private $debug;
/** /**
* @param ContainerInterface $container * @param ContainerInterface $container
@ -65,6 +60,7 @@ class CachingApiDocExtractor extends ApiDocExtractor
$debug = false $debug = false
) { ) {
parent::__construct($container, $router, $reader, $commentExtractor, $controllerNameParser, $handlers, $annotationsProviders); parent::__construct($container, $router, $reader, $commentExtractor, $controllerNameParser, $handlers, $annotationsProviders);
$this->cacheFile = $cacheFile; $this->cacheFile = $cacheFile;
$this->debug = $debug; $this->debug = $debug;
} }
@ -106,7 +102,7 @@ class CachingApiDocExtractor extends ApiDocExtractor
* @param string $view * @param string $view
* @return ConfigCache * @return ConfigCache
*/ */
protected function getViewCache($view) private function getViewCache($view)
{ {
return new ConfigCache($this->cacheFile.'.'.$view, $this->debug); return new ConfigCache($this->cacheFile.'.'.$view, $this->debug);
} }