Logger: rename getWriter() -> createWriter()

refs #7060
This commit is contained in:
Alexander Klimov 2014-09-03 11:34:21 +02:00
parent 3ade6da44d
commit 70cf14f775

View File

@ -52,7 +52,7 @@ class Logger
$this->verbosity = $config->level; $this->verbosity = $config->level;
if ($config->enable) { if ($config->enable) {
$this->writer = $this->getWriter($config); $this->writer = $this->createWriter($config);
} }
} }
@ -75,7 +75,7 @@ class Logger
* *
* @throws ConfigurationError In case the requested writer cannot be found * @throws ConfigurationError In case the requested writer cannot be found
*/ */
protected function getWriter(Zend_Config $config) protected function createWriter(Zend_Config $config)
{ {
$class = 'Icinga\\Logger\\Writer\\' . ucfirst(strtolower($config->type)) . 'Writer'; $class = 'Icinga\\Logger\\Writer\\' . ucfirst(strtolower($config->type)) . 'Writer';
if (!class_exists($class)) { if (!class_exists($class)) {