-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed IO param types for proper type hinting.
- Loading branch information
Showing
2 changed files
with
22 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,25 +10,27 @@ | |
*/ | ||
namespace Cascade; | ||
|
||
use Monolog\Logger; | ||
use Monolog\Registry; | ||
|
||
use Cascade\Config; | ||
use Cascade\Config\ConfigLoader; | ||
use Monolog\Handler\HandlerInterface; | ||
use Monolog\Logger; | ||
use Monolog\Registry; | ||
|
||
/** | ||
* Module class that manages Monolog Logger object | ||
* @see Monolog\Logger | ||
* @see Monolog\Registry | ||
* | ||
* @author Raphael Antonmattei <[email protected]> | ||
* | ||
* @see \Monolog\Logger | ||
* @see \Monolog\Registry | ||
* | ||
*/ | ||
class Cascade | ||
{ | ||
/** | ||
* Config class that holds options for all registered loggers | ||
* This is optional, you can set up your loggers programmatically | ||
* @var Cascade\Config | ||
* @var Config | ||
*/ | ||
protected static $config = null; | ||
|
||
|
@@ -37,14 +39,14 @@ class Cascade | |
* | ||
* @see Monolog\Logger::__construct | ||
* | ||
* @param string $name The logging channel | ||
* @param HandlerInterface[] $handlers Optional stack of handlers, | ||
* the first one in the array is called first, etc. | ||
* @param callable[] $processors Optional array of processors | ||
* @param string $name The logging channel | ||
* @param HandlerInterface[] $handlers Optional stack of handlers, the first one in the array is called first, | ||
* etc. | ||
* @param callable[] $processors Optional array of processors | ||
* | ||
* @throws \InvalidArgumentException: if no name is given | ||
* | ||
* @return Monolog\Logger newly created Logger | ||
* @return Logger newly created Logger | ||
*/ | ||
public static function createLogger( | ||
$name, | ||
|
@@ -67,7 +69,8 @@ public static function createLogger( | |
* provided name does not exist | ||
* | ||
* @param string $name Name of the requested Logger instance | ||
* @return Monolog\Logger Requested instance of Logger or new instance | ||
* | ||
* @return Logger Requested instance of Logger or new instance | ||
*/ | ||
public static function getLogger($name) | ||
{ | ||
|
@@ -79,7 +82,8 @@ public static function getLogger($name) | |
* @see getLogger | ||
* | ||
* @param string $name Name of the requested Logger instance | ||
* @return Monolog\Logger Requested instance of Logger or new instance | ||
* | ||
* @return Logger Requested instance of Logger or new instance | ||
*/ | ||
public static function logger($name) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters