mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Change getViewCache method visibility to private
This commit is contained in:
parent
02007e957d
commit
be682f7d18
@ -27,20 +27,15 @@ use Symfony\Component\Routing\RouterInterface;
|
||||
*/
|
||||
class CachingApiDocExtractor extends ApiDocExtractor
|
||||
{
|
||||
/**
|
||||
* @var \Symfony\Component\Config\ConfigCache
|
||||
*/
|
||||
protected $cache;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $cacheFile;
|
||||
private $cacheFile;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
protected $debug;
|
||||
private $debug;
|
||||
|
||||
/**
|
||||
* @param ContainerInterface $container
|
||||
@ -65,6 +60,7 @@ class CachingApiDocExtractor extends ApiDocExtractor
|
||||
$debug = false
|
||||
) {
|
||||
parent::__construct($container, $router, $reader, $commentExtractor, $controllerNameParser, $handlers, $annotationsProviders);
|
||||
|
||||
$this->cacheFile = $cacheFile;
|
||||
$this->debug = $debug;
|
||||
}
|
||||
@ -106,7 +102,7 @@ class CachingApiDocExtractor extends ApiDocExtractor
|
||||
* @param string $view
|
||||
* @return ConfigCache
|
||||
*/
|
||||
protected function getViewCache($view)
|
||||
private function getViewCache($view)
|
||||
{
|
||||
return new ConfigCache($this->cacheFile.'.'.$view, $this->debug);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user