SilverStripe\Omnipay\Helper\ErrorHandling::safeExtend
Helper Method to safeguard an extend call.
It's important that extensions don't interrupt with errors, as payment data/messages might not get written properly! In dev and test environments, exceptions will be thrown!
Signature
public function safeExtend(mixed
$object,
string
$method,
[mixed&
$a1 = NULL,
[mixed&
$a2 = NULL,
[mixed&
$a3 = NULL,
[mixed&
$a4 = NULL,
[mixed&
$a5 = NULL,
[mixed&
$a6 = NULL,
[mixed&
$a7 = NULL]]]]]]] )
Parameters
$object
— mixed- the object that should run the extension
$method
— string- the extension method to call
$a1
— mixed- optional parameter 1
$a2
— mixed- optional parameter 2
$a3
— mixed- optional parameter 3
$a4
— mixed- optional parameter 4
$a5
— mixed- optional parameter 5
$a6
— mixed- optional parameter 6
$a7
— mixed- optional parameter 7
Returns
- array
Errors/Exceptions
-
Exception
- any exception that occurred (only in dev and test environments)