mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-12 08:04:02 +02:00
tweeks
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Monolog package.
|
||||
*
|
||||
* (c) Jordi Boggiano <j.boggiano@seld.be>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Monolog\Processor;
|
||||
|
||||
/**
|
||||
* Basic processor class
|
||||
* @author Rob Jensen
|
||||
*/
|
||||
abstract class AbstractProcessor
|
||||
{
|
||||
|
||||
abstract public function __invoke( array $record );
|
||||
|
||||
}
|
@@ -15,21 +15,17 @@ namespace Monolog\Processor;
|
||||
* Some methods that are common for all memory processors
|
||||
* @author Rob Jensen
|
||||
*/
|
||||
abstract class MemoryProcessor extends AbstractProcessor
|
||||
class MemoryProcessor
|
||||
{
|
||||
|
||||
protected $realUsage;
|
||||
|
||||
/**
|
||||
* @param array $options
|
||||
* @param boolean $realUsage
|
||||
*/
|
||||
public function __construct( $options = array() )
|
||||
public function __construct($realUsage = true)
|
||||
{
|
||||
if(array_key_exists('realUsage', $options )){
|
||||
$this->realUsage = (boolean) $options['realUsage'];
|
||||
} else {
|
||||
$this->realUsage = true;
|
||||
}
|
||||
$this->realUsage = (boolean) $realUsage;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user