Answer the question
In order to leave comments, you need to log in
What is the best way to transfer the config along the “chain of responsibilities”?
new PaymentOf(
new ConcreatePaymentSystem(
new CardForm(
$_POST
)
)
);
$config = new Config(
[
'secret' => [
'secret_key' => '',
'auth_key' => '',
],
'db' => [
'db_host' => '', //with db
'db_name' => '', //with db
'username' => '', //with db
'password' => '', //with db
'db_type' => 'mysql' //with db
],
'urls'=>[
'callback_url'=>'',//default
'after_payment_url'=>'', //default
'fail_url'=>'', //default
'success_url'=>'', //default
]
]);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question