|
|
@@ -47,9 +47,9 @@ class Registry
|
|
|
/**
|
|
|
* Adds new logging channel to the registry
|
|
|
*
|
|
|
- * @param Logger $logger Instance of the logging channel
|
|
|
- * @param string $name Name of the logging channel ($logger->getName() by default)
|
|
|
- * @param boolean $overwrite Overwrite instance in the registry if the given name already exists?
|
|
|
+ * @param Logger $logger Instance of the logging channel
|
|
|
+ * @param string $name Name of the logging channel ($logger->getName() by default)
|
|
|
+ * @param boolean $overwrite Overwrite instance in the registry if the given name already exists?
|
|
|
* @throws \InvalidArgumentException If $overwrite set to false and named Logger instance already exists
|
|
|
*/
|
|
|
public static function addLogger(Logger $logger, $name = null, $overwrite = false)
|
|
|
@@ -90,8 +90,8 @@ class Registry
|
|
|
/**
|
|
|
* Gets Logger instance from the registry
|
|
|
*
|
|
|
- * @param string $name Name of the requested Logger instance
|
|
|
- * @return Logger Requested instance of Logger
|
|
|
+ * @param string $name Name of the requested Logger instance
|
|
|
+ * @return Logger Requested instance of Logger
|
|
|
* @throws \InvalidArgumentException If named Logger instance is not in the registry
|
|
|
*/
|
|
|
public static function getInstance($name)
|
|
|
@@ -106,9 +106,9 @@ class Registry
|
|
|
/**
|
|
|
* Gets Logger instance from the registry via static method call
|
|
|
*
|
|
|
- * @param string $name Name of the requested Logger instance
|
|
|
- * @param array $arguments Arguments passed to static method call
|
|
|
- * @return Logger Requested instance of Logger
|
|
|
+ * @param string $name Name of the requested Logger instance
|
|
|
+ * @param array $arguments Arguments passed to static method call
|
|
|
+ * @return Logger Requested instance of Logger
|
|
|
* @throws \InvalidArgumentException If named Logger instance is not in the registry
|
|
|
*/
|
|
|
public static function __callStatic($name, $arguments)
|