Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F120837991
EventLogObserver.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
514 B
Referenced Files
None
Subscribers
None
EventLogObserver.php
View Options
<?php
namespace
App\Observers
;
use
App\EventLog
;
use
App\Utils
;
class
EventLogObserver
{
/**
* Ensure the event entry ID is a custom ID (uuid).
*
* @param EventLog $eventlog The EventLog object
*/
public
function
creating
(
EventLog
$eventlog
):
void
{
if
(!
isset
(
$eventlog
->
user_email
))
{
$eventlog
->
user_email
=
Utils
::
userEmailOrNull
();
}
if
(!
isset
(
$eventlog
->
type
))
{
throw
new
\Exception
(
"Unset event type"
);
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Apr 24, 1:53 PM (5 d, 2 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18840733
Default Alt Text
EventLogObserver.php (514 B)
Attached To
Mode
rK kolab
Attached
Detach File
Event Timeline