It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.
If you suppress an error, we recommend checking for the error condition explicitly:
// For example instead of@mkdir($dir);// Better useif(@mkdir($dir)===false){thrownew\RuntimeException('The directory '.$dir.' could not be created.');}
Loading history...
22
}
23
24
public function stop()
25
{
26
}
27
28
/**
29
* Write an event into the event log
30
* @param string $event_name
31
* @param array $args
32
* @param array $params
33
* @param array $response
34
*/
35
public function log($event_name, $args, $params, $response)
If you suppress an error, we recommend checking for the error condition explicitly: