Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1432260
Handler.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
Handler.php
View Options
<?php
declare
(
strict_types
=
1
);
/*
* 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\Handler
;
/**
* Base Handler class providing basic close() support as well as handleBatch
*
* @author Jordi Boggiano <j.boggiano@seld.be>
*/
abstract
class
Handler
implements
HandlerInterface
{
/**
* {@inheritDoc}
*/
public
function
handleBatch
(
array
$records
):
void
{
foreach
(
$records
as
$record
)
{
$this
->
handle
(
$record
);
}
}
/**
* {@inheritDoc}
*/
public
function
close
():
void
{
}
public
function
__destruct
()
{
try
{
$this
->
close
();
}
catch
(
\Throwable
$e
)
{
// do nothing
}
}
public
function
__sleep
()
{
$this
->
close
();
$reflClass
=
new
\ReflectionClass
(
$this
);
$keys
=
[];
foreach
(
$reflClass
->
getProperties
()
as
$reflProp
)
{
if
(!
$reflProp
->
isStatic
())
{
$keys
[]
=
$reflProp
->
getName
();
}
}
return
$keys
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 21:35 (1 d, 11 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
9e/1c/05c252fab408d9bcd7035c59aa89
Default Alt Text
Handler.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment